Thoughts from newcommer

Jack Stouffer via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 16 10:00:25 PDT 2017


On Sunday, 16 April 2017 at 07:50:43 UTC, Shachar Shemesh wrote:
> The first is that the language does not offer any RAII 
> containers out of the box. What it does provide is the 
> *ability* to create RAII containers. D supports RAII, but does 
> not actually have RAII.

Semantic game. D actually has RAII.

And D does have RAII containers: 
https://dlang.org/phobos/std_container.html

> (And, yes, there is an open bug: 
> https://issues.dlang.org/show_bug.cgi?id=14246)

So we can say that D has buggy RAII. Claiming that D doesn't have 
RAII is equally false.


More information about the Digitalmars-d mailing list