2 ms·
D can do RAII.
by WalterBright 4y ago
D can do RAII.
- germandiago 4y agovia structs, right? As for classes you should not rely on it I recall.
- pjmlp 4y agoYou can stack allocate classes, and then they behave like structs. https://dlang.org/blog/2017/07/07/go-your-own-way-part-one-the-stack/ https://dlang.org/blog/2017/07/07/go-your-own-way-part-one-t...