Thoughts from newcommer

Eugene Wissner via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 11 14:04:11 PDT 2017


On Tuesday, 11 April 2017 at 20:48:13 UTC, Piotr Kowalski wrote:
>> (All gc-ed langauges recommend static preallocation :P)
>
> ;) Thanks for replying.
>
>> https://wiki.dlang.org/Vision/2017H1
>>
>
> Thanks, I have read that already, that's why I've asked about 
> longer term.
>
>>> What about RAII?
>>
>> It's already in the language.
>
> Is it in std already? How do I allocate equivalent of 
> std::vector on heap with RAII in D that will be disposed at the 
> end of the scope automatically?
>
std.container.array is something similar.




More information about the Digitalmars-d mailing list