Destroying structs (literally)

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 29 11:59:22 PDT 2014


On 8/29/14, 2:16 AM, monarch_dodra wrote:
> 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?

Right, and reasonable. -- Andrei


More information about the Digitalmars-d mailing list