P.S. Re: weak pointers

I didn't mention this right when it came up a few days ago, but there's a second important use case for weak pointers in the VM: the debugger. Since a debugger shouldn't alter execution pattern, that should also include when objects get rounded up for collection. In other words, each and every pointer from the debugger to any object in a program-under-test should be weak. When such a weak pointer goes out of scope, the debugger simply says "object no longer exists", which is exactly informative.

Eric



_______________________________________________
Gnash-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-dev

Reply via email to