Workaround for typeid access violation

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 16 07:32:44 PDT 2015


On 6/16/15 10:00 AM, Etienne wrote:
> There is a bug regarding unordered object collection in the GC. My
> finalizer accesses another GC-allocated object

Don't do that. Nothing is guaranteed in order of destruction. Note that 
after calling the destructor of an object, the vtable pointer is nulled.

-Steve



More information about the Digitalmars-d mailing list