[Issue 1207] Documentation on destructors is confusing

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 1 12:23:14 PDT 2007


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


wbaxter at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Comment #2 from wbaxter at gmail.com  2007-07-01 14:23 -------
It's better, but now there's a little typo:
"""
This is because that the garbage collector ...
"""

Also the explanation seems to be a little out of order now.

It says this:
"""
The garbage collector is not guaranteed to run the destructor for all
unreferenced objects. Furthermore, the order in which the garbage collector
calls destructors for unreference objects is not specified.
"""

*after* having already said in the previous paragraph: "the garbage collector
does not collect objects in any guaranteed order".  I think the above paragraph
should be moved before the paragraph that explains why you can't reference
sub-objects.


-- 



More information about the Digitalmars-d-bugs mailing list