|
On 04/12/2011 19.41, Roberto Ierusalimschy wrote:
It is weird and wrong. As someone already mentioned, distinct variables must have distinct addresses.
Weirdness apart, one could perhaps try using "volatile". The compiler should never be able to deduce that the value is never changed by anybody and therefore could be treated as a shared constant.
(it would have a performance cost, though) -- Enrico