4 ms·
You're right, in certain cases it would still cause trouble, but it would be a lot fewer cases than 100%. Reading only once would be safe, and passing it to an
by Dylan16807 11y ago
You're right, in certain cases it would still cause trouble, but it would be a lot fewer cases than 100%. Reading only once would be safe, and passing it to another functions would make a variable that can no longer change unexpectedly.
- dbaupp 11y agoUnless the function is inlined/the compiler can deduce that the variable is undef. (Of course, you could define it to work, but I would suspect that would make this sort of value much less useful.)