4 ms·
"Assuming that the size is not explicitly casted, the compiler should throw a warning of the following kind:" In D, implicit truncation of an integer value is
by WalterBright 9y ago
"Assuming that the size is not explicitly casted, the compiler should throw a warning of the following kind:"
In D, implicit truncation of an integer value is an error, not a warning.
I've predicted before that lack of memory safety will be the demise of C in internet-facing programs. Dealing with the bugs is just too expensive.
- blub 9y agoIt seems like your prediction is not becoming reality. I have the following issue: I would like to be able to download a file from the internet (jpeg, pdf, mp3, mp4, etc) without the risk of getting malware on a Windows machine. Or Mac. Or Linux. Can't be done. Everything is relying on crappy C code dragging around pointers and sizes, making index calculations, calling malloc and free.
- WalterBright 9y ago> It seems like your prediction is not becoming reality. We'll see. I only made it last May :-)