Destroying structs (literally)
via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 29 03:54:22 PDT 2014
On Friday, 29 August 2014 at 09:16:36 UTC, 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?
Yes, there's no way around this with a conservative GC.
More information about the Digitalmars-d
mailing list