Compiling a role name into a message to self
trygver at ifi.uio.no
Mon Nov 19 18:03:26 UTC 2007
I am just completing an experiment where I am programming with roles. A
role name stands for one or more objects; the actual binding occur at
run time. Example:
/(self playerForRole: #currentStar) displayLarge/
It would be much more readable if I could write something like
/¤currentStar displayLarge / or /§currentStar displayLarge/ or /
:-) currentStar displayLarge /or ...
/currentStar /is a role name, /self playerForRole:/ searches down the
stack to find the appropriate object binding .
I suppose I have to choose an appropriate syntax and doctor the
compiler. Any ideas?
Trygve Reenskaug mailto: trygver at ifi.uio.no
Morgedalsvn. 5A http://folk.uio.no/trygver
N-0378 Oslo Tel: (+47) 22 49 57 27
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev