|
|
|
|
|
by deaddodo
2309 days ago
|
|
That's not "by default". The compiler doesn't provide it, the language provides for you as the developer using the language to implement your own (or use a third-party) GC and utilize it. D and Rust both offer the same amenities and are not "garbage collected" languages. |
|
Rust isn't but D is absolutely a garbage collected language. The GC is provided by default and expected to exist. https://dlang.org/overview.html#resource & https://dlang.org/spec/garbage.html
There's a non-GC'd subset of D, though. That would be the BetterC subset https://dlang.org/spec/betterc.html