Compiling a role name into a message to self
Trygve Reenskaug
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?
Thanks
--Trygve
--
Trygve Reenskaug mailto: trygver at ifi.uio.no
Morgedalsvn. 5A http://folk.uio.no/trygver
N-0378 Oslo Tel: (+47) 22 49 57 27
Norway
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20071119/a478a443/attachment.htm
More information about the Squeak-dev
mailing list
|