D is dead
Walter Bright
newshound2 at digitalmars.com
Sat Aug 25 07:56:55 UTC 2018
On 8/24/2018 6:34 AM, Shachar Shemesh wrote:
> No, unlike what I suggest, that doesn't work without carefully reviewing every
> single place you put it to see whether the constructor actually supports
> destructing a partially constructed object.
All D objects are default-initialized before the constructor sees it (unlike
C++). A destructor should be able to handle a default-initialized object.
More information about the Digitalmars-d
mailing list