Thoughts from newcommer
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 18 09:42:38 PDT 2017
On 04/18/2017 03:00 AM, Shachar Shemesh wrote:
>> D would have the ability to have a nice container that would do RAII
>> (for classes since for structs, __dtors are called automatically)
>
> That's just it, though. They are not. Not reliably.
Yah, clearly there's a problem with the language implementation (and the
definition that is incomplete, leaving too much leeway to the
implementation). Clearly the way to go is fix the bug, which has been
preapproved and of raised gravity. That would obviate the entire
"implementation has a bug therefore language does not support RAII" line
of reasoning. Thanks Stefan for looking into this! -- Andrei
More information about the Digitalmars-d
mailing list