3 ms·
> 3. don't use OOP classes (which rely on the GC and the runtime) I was not aware of this at all, do you ever see a time where you could compile D with classes
by giancarlostoro 8y ago
> 3. don't use OOP classes (which rely on the GC and the runtime)
I was not aware of this at all, do you ever see a time where you could compile D with classes an all with no garbage collection? I am not bothered by the GC coming from C# and Python but it is interesting to know where D is headed since I know there were many efforts at making D compile without any GC.
Basically do you think it will ever make sense for D to just compile without GC by passing a compiler flag? Irrelevant of what D features are used, and maybe it can tell you which features cannot be used without GC (sorry if this already is a feature, I use D I'm not a guru yet).
- WalterBright 8y agoThe compiler flag would be -betterC. You can use classes with no GC if you're willing to allocate and initialize them manually.