Andrea, I see nothing directly wrong with your patch, but perhaps our messages went past one another since our lists of proposed pure functions differ. > More useful would be the ability to constant-fold ash, expt, %, mod and abs for a subset of each respective domain. I can write a patch. Here is that patch.