4 ms·
Why can't you ensure it is zeroed in advance of destructor invocation?
by pekk 12y ago
Why can't you ensure it is zeroed in advance of destructor invocation?
- m_mueller 12y agobecause you don't know how 'intelligent' the compiler is. As long as there's no intrinsic you can't be sure that it works/keeps on working.
- omega_rythm 12y agoWhich is a deficiency of compilers and languages they support: there should be a notion of "verbatim" code, where the compiler doesn't try to apply any code transformation changing the "literal" semantics (as opposed to "intended" semantics). Of course this would only be possible for languages like C which don't make any advanced abstractions on the hardware arch.