Constants, Aliases
janderson
askme at me.com
Fri Dec 15 01:04:40 PST 2006
Alexander Panek wrote:
> Xinok wrote:
>
> Technically, you can change a constant value in C++, too, if you want.
> Just get the address and write a little inline assembler to mov x, y
> something else there. I can't imagine what'd hold me off from that.
Actually that would be very difficult to make work, with optimisation.
You'd have to find and replace every position the const was used
(including ones that have been combined with other constants and
optimizations) and replace them.
More information about the Digitalmars-d
mailing list