On 2012-12-04, Wilhelm Haager <wilhelm.haager at htlstp.ac.at> wrote:
> I would like to overwrite the built in operator "^" and give to it the
> meaning of the function logxor. Is that possible on principal?
Putting aside the question of whether it's a good idea, there is no easy
way to redefine "^". You would have to look at the properties of $^ and
MEXPT and change them around. So it could be done, but it's messy.
As to whether it's a good idea, I think it would be confusing, so if you
want such an operator, I think you should give it a different name.
logxor as it is defined in functs.mac assumes its arguments are
integers. If you want a more general xor function, which allows for
symbolic arguments, we can talk about that.
best,
Robert Dodier