Destroying structs (literally)

monarch_dodra via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 29 02:16:34 PDT 2014


On Friday, 29 August 2014 at 09:08:07 UTC, Andrej Mitrovic via 
Digitalmars-d wrote:
> On 8/29/14, ponce via Digitalmars-d 
> <digitalmars-d at puremagic.com> wrote:
>> On Friday, 29 August 2014 at 02:21:07 UTC, Andrei Alexandrescu
>> wrote:
>>> Dear community, are you ready for this?
>>
>> Yes! Whatever needs be done.
>
> Yeah destructors are a sore pain when they're unreliable. "May 
> or may
> not be called" is just an awful semantic.

That won't really change though, will it? AFAIK, it'll become: 
"will eventually be called at some unspecified point it time. The 
program may terminate before that happens, at which point, the 
destructor will never be called."

...right?


More information about the Digitalmars-d mailing list