[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Jun 12 13:19:41 1995 
Subject:Cancelling ^ and flavours 
From:Jocelyn Paine 
Volume-ID:950613.02 

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