[Issue 5895] Object.clear() doesn't work as expected for pointers to structs
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jan 26 04:55:06 PST 2015
https://issues.dlang.org/show_bug.cgi?id=5895
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |schveiguy at yahoo.com
Resolution|--- |INVALID
--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> ---
While the behavior may be unintuitive, the distinction is intended. Class
references are actually the oddball behavior, but there is no way to separate
the class data vs. the reference.
In terms of replacing delete, destroy is not that, although it is part of it.
I think in order for this to be "fixed" it needs to be in a DIP, or at least
framed a different way.
--
More information about the Digitalmars-d-bugs
mailing list