The code fragment below models a situation I found where one of my
libraries defines ^, but I then need to cancel it so that I can use
send-to-self in Flavours. I was defining ^ as synonomous in value with
** so that I could use 'X is Y^Z' in Prolog.
Can anyone explain why the following gives a syntax error in the
definition of f? It complains about ^, but surely the call to syscancel
has erased any properties this had?
lib flavours;
vars ^ = nonop ** ;
syscancel("^");
flavour f; defmethod m(); ^m() enddefmethod endflavour;
Thanks
Jocelyn
|