[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: alternative udata checking
- From: Enrico Colombini <erix@...>
- Date: Sun, 04 Dec 2011 20:01:12 +0100
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)