<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
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.&nbsp; Example:<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <i>(self playerForRole: #currentStar) displayLarge</i><br>
It would be much more readable if I could write something like<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <i>&curren;currentStar displayLarge&nbsp;</i> or <i>&sect;currentStar
displayLarge</i> or&nbsp;<i><span class="moz-smiley-s1"><span> :-) </span></span>currentStar
displayLarge </i>or ...<br>
<i>currentStar </i>is a role name, <i>self playerForRole:</i>
searches down the stack to find the appropriate object binding .<br>
<br>
I suppose I have to choose an appropriate syntax and doctor the
compiler. Any ideas?<br>
<br>
Thanks<br>
--Trygve<br>
<pre class="moz-signature" cols="72">-- 

Trygve Reenskaug      mailto: <a class="moz-txt-link-abbreviated" href="mailto:trygver@ifi.uio.no">trygver@ifi.uio.no</a>
Morgedalsvn. 5A       <a class="moz-txt-link-freetext" href="http://folk.uio.no/trygver">http://folk.uio.no/trygver</a>
N-0378 Oslo           Tel: (+47) 22 49 57 27
Norway 
 </pre>
</body>
</html>