<br><br><div class="gmail_quote">On Sun, Apr 17, 2011 at 4:30 PM, David T. Lewis <span dir="ltr"><<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
On Sun, Apr 17, 2011 at 03:37:35PM +0200, Mariano Martinez Peck wrote:<br>
><br>
> On Sun, Apr 17, 2011 at 3:22 PM, David T. Lewis <<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>> wrote:<br>
><br>
> ><br>
> > On Sun, Apr 17, 2011 at 12:29:21AM +0200, Mariano Martinez Peck wrote:<br>
> > ><br>
> > > On Wed, Apr 13, 2011 at 2:48 AM, David T. Lewis <<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>><br>
> > wrote:<br>
> > > ><br>
> > > > Try this:<br>
> > > ><br>
> > > > Transcript<br>
> > > > open;<br>
> > > > clear;<br>
> > > > show: (Interpreter asCString: #lookupInMethodCacheSel:class:)<br>
> > > ><br>
> > ><br>
> > > Thanks Dave. I tried but I only got this in the Transcript:<br>
> > ><br>
> > > /* Simulator subclasses with method overrides should not be translated.<br>
> > */<br>
> > > /* ObjectMemory class>>initializeConstants */<br>
> > ><br>
> ><br>
> > Sorry I was not clear, but SlangBrowser does not yet work in the oscog<br>
> > branch.<br>
> ><br>
><br>
> Now, I was trying in a Interpreter VM, not Cog.<br>
<br>
</div></div>Sorry, I misread your message. The error message from SlangBrowser is<br>
misleading. The #initializeConstants method is not translated to C because<br>
only instance side methods are translated.<br>
<br></blockquote><div><br>Maybe I was not clear. Want I meant is that I *ONLY* see that in the Transcript. NOthing else. I didn't see the C code of #lookupInMethodCacheSel:class:<blockquote class="gmail_quote"></blockquote>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The class side initializers set the values of various class variables<br>
that will appear as C macros in the generated source. When running the<br>
interpreter simulator, the class variables are just class variables.<br>
In the C code, they are #define macros that are used throughout the<br>
generated C code.<br>
<br></blockquote><div><br>Interesting :)<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dave<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>