Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Mesa/Cedar, Modula-3, Active Oberon, D, Nim, for example, not to make an exhaustive list. C# also does provide some mechanisms to dive into it, since version 7, although not as easy.

Basically you can use GC heap as usual, or native heap with untraced references, stack or global memory segments.

Value types with constructors/destructors pairs are also supported.

So you have all the building blocks to do C++ style RAII when needed, otherwise relax and enjoy the GC.



thanks




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: