It's not that easy. You change sv_mortalcopy (or other functions or macros) to take a const pointer, and you get a const pointer inside them. That means any place you pass it into needs to be changed to const, and pretty soon you ripple through a good chunk of the source. That's definitely got repercussions. (It doesn't help that perl's horribly incestuous with itself--there's a goodly number of routines that fiddle with bits that you wouldn't expect, which make const-ing them impossible) | [reply] |