<br><br><div class="gmail_quote">On Fri, Jan 28, 2011 at 1:39 PM, Chris Cunnington <span dir="ltr"><<a href="mailto:smalltalktelevision@gmail.com">smalltalktelevision@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I've got some notes from 2 May 2010 about pragmas. Eliot produced this example at the time:<br>
<br>
x := Editor class compiledMethodAt: #blinkingCursor.<br>
<br>
x pragmas<br>
{<preference: 'Blinking Text Cursor' category: 'Morphic' description: 'When true, the text cursor will blink.' type: #Boolean>}.<br>
<br>
I think that corresponds with his message today:<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Having it as a message pattern means:<br>
- one can search for references to the method tag by searching for senders<br>
of the message tag's selector<br>
</blockquote>
<br></div>
But the ultimate destination of all method annotations is a #perform:?<br></blockquote><div><br></div><div>Not necessarily, but often this can be a powerful pattern. If a method tag means something, can be interpreted somehow, then effecting this interpretation via a perform is delightfully direct and minimal. But sometimes the meaning is beyond the system (e.g. as I wrote to myself today <flag: 'rewrite this crap.'> ;) ) and so there is no interpretation that can be implemented in Smalltalk code.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I take that from this:<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- one can provide implementation(s) of the selector and hence execute the<br>
method tag using perform<br>
</blockquote>
<br></div>
So the ultimate destination of all pragmas/method annotations/method tags is that somewhere a #perform: lurks waiting<br>
for it? Sometimes that's the Compiler class and sometimes it's another class with a #perform:.<br></blockquote><div><br></div><div>Certainly that's possible for a significant subset of potential uses.</div><div>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I'd appreciate it if somebody could say if this is an accurate picture.<br>
A "yes" will do it.<br></blockquote><div><br></div><div>yes, with caveats :)</div><div><br></div><div>best</div><div>Eliot</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888">
<br>
Chris<br></font></blockquote><div><br></div><div>Stitch: I'm having a good day </div></div><br>