(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?

The current proposal is this https://github.com/dlang/DIPs/blob/master/DIPs/DIP1000.md

Thanks, after first glance I think this is addressing exactly what I was asking.



Reply via email to