4 ms·
> difficult in the generic case We do what we can. D also uses 0xFF for char default initialization (an invalid code unit).
by WalterBright 4y ago
> difficult in the generic case
We do what we can. D also uses 0xFF for char default initialization (an invalid code unit).
- archi42 4y agoYeah, there is only so much that's possible on the language side. Though static analysis in compilers can catch some instances of some problems. But looking up your name, I guess you probably already knew that :) I'd love to see hardware having a "offloaded memory guard" flag: Mark in-use memory with it and get a OMG trap on any memory access with the flag not set (of course totally transparent with hardware acceleration). Too bad this is only simple on paper, where there is no such thing as (among others) memory latency.