2 Replies Latest reply on Jun 9, 2010 7:59 AM by Zen Seven

    Weak references for variables

    Zen Seven

      Hello,

       

      UseWeakReference exists for addEventListener and for dictionaries. Is there any way to set a variable to be a weak reference? Kind of like WkPtr<> in boost for C++? I'd like to use this for function callbacks, amongst other things. Would hate to have to wrap everything in a dictionary as a hack.

       

      Thanks!