[Issue 2497] delete and null relationship needs more details

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 6 17:00:12 PST 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2497





------- Comment #3 from jarrett.billingsley at gmail.com  2008-12-06 19:00 -------
It's undefined.  Comparing to Java doesn't make much sense here, since the only
way an object can go away in Java is if no references refer to it, so there's
no way to have a reference to an object that has been collected.  

delete is sort of a "power user" tool for when you _know_ that there are no
other references to the object and want to help out the GC a bit, so it's going
to have sharp edges.


-- 



More information about the Digitalmars-d-bugs mailing list