Type safety could prevent nuclear war
Ola Fosheim Grøstad via Digitalmars-d
digitalmars-d at puremagic.com
Thu Feb 4 15:19:20 PST 2016
On Thursday, 4 February 2016 at 22:57:00 UTC, tsbockman wrote:
> Actually, I'm surprised that this works even in C - I would
> have expected at least a compiler (or linker?) warning; this
> seems like it should be easy to detect automatically.
AFAICT C would have complained if he had included <math.h>. This
is a rather unlikely mistake...
Anyway, in C being able to work around restrictions is sometimes
desired, so... if you don't want the ability to do it, don't use
C.
More information about the Digitalmars-d
mailing list