On Tuesday, 18 April 2017 at 16:42:38 UTC, Andrei Alexandrescu
wrote:
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
This is going to be tricky without breaking code which worked
around the bug.