<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
No response on my first SOS.<br>
<br>
<ul>
  <li>I am now in my first dive into the compiler; there's a lot to
learn. </li>
  <li>I first found the pragmas, but they do not seem to fit my purpose.</li>
  <li>I next found the message selector macro facility in&nbsp;
MessageNode/special . Very neat, but I need to do something with a
variable name, not a selector.</li>
</ul>
<br>
There are a host of different kinds of variables- local, instance,
class, pool, ... It would be nice with yet another one: "computed" or
"aliased". A special syntax for a variable name that will lead to&nbsp;
inlining a&nbsp; method for finding the object currently accessed through
the name. <br>
<br>
I would really appreciate help from someone familiar with compiler work.<br>
<br>
Thanks<br>
--Trygve. <br>
<br>
<br>
On 19.11.2007 19:03, Trygve Reenskaug wrote:
<blockquote cite="mid:4741CFEE.9050902@ifi.uio.no" type="cite">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 moz-do-not-send="true"
 class="moz-txt-link-abbreviated" href="mailto:trygver@ifi.uio.no">trygver@ifi.uio.no</a>
Morgedalsvn. 5A       <a moz-do-not-send="true"
 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>
</blockquote>
<br>
<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>