How usable is the D language without a garbage collector?
Siarhei Siamashka
siarhei.siamashka at gmail.com
Sun Jul 17 09:27:03 UTC 2022
On Sunday, 17 July 2022 at 05:36:37 UTC, Ola Fosheim Grøstad
wrote:
> There are some decisions in D that undermines what C tries to
> achieve, like having wrapping signed int, having non zero
> default initialization for built in types
Modern C compilers are "undermining what C tries to achieve" too.
GCC has '-fwrapv' option for wrapping signed ints and
'-ftrivial-auto-var-init=' option for preventing variables from
being accidentally left uninitialized. There's also
'-fno-strict-aliasing' option for eliminating the root cause of a
certain class of hard to debug problems. All of this together
forms a kind of somewhat safer non-standard C dialect, which is
still fully compatible with the existing C code.
More information about the Digitalmars-d
mailing list