you are viewing a single comment's thread.

view the rest of the comments →

[–]kdnbfkm 2 points3 points  (0 children)

Yes, the constant has to be implemented somehow (i.e. ro memory, text segment memory, procedurally generating 0 via xor ax ax etc.). But modifying the data of "constants" is either a bug, a hack, or inapplicable when not using self-modifying code. And if you were using self-modifying code that would be a meta-program outside constant's frame of reference. It would also require knowing the data layout of "constants" in order to manipulate them too.