3 ms·
> I'm dreaming of a C with only pointers that has an optional VM (with and without GC) and namespaces, string and stream included. It'd be really nice to be ab
by wyldfire 4y ago
> I'm dreaming of a C with only pointers that has an optional VM (with and without GC) and namespaces, string and stream included.
It'd be really nice to be able to trigger some scope-exit behavior, too, IMO.
- bullen 4y agoDo you mean for Exception handling?
- alcover 4y agoMaybe parent hinted at what GCC extensions like __cleanup__ variable attribute do.
- wyldfire 4y agoIndeed: maybe not a full "RAII" kind of feature but at least something simple that allows the author to specify (around the same place where a resource allocation happened, e.g.) that some other symmetric behavior should take place on any scope exit point.
- bullen 4y agoHm, ok my take on this is unexperienced; I come from Java and only learned C++ recently: I would like to have heap inspection tools which a VM would give you. Then you can remove the VM if/when you need performance and have profiled memory enough.