<br><br><div class="gmail_quote">On Thu, Feb 11, 2010 at 1:55 PM, David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5"><br>
On Thu, Feb 11, 2010 at 10:19:34AM +0100, Mariano Martinez Peck wrote:<br>
&gt;<br>
&gt; I ask without knowing anything of the background or context. I have just saw<br>
&gt; it and I cannot understand very much why it is like that. I ask myself if<br>
&gt; composition would be better.<br>
&gt; Probably is something related to SLANG, but I don&#39;t know.<br>
<br>
</div></div>Yes, that is right. Organizing the Interpreter as a subclass of ObjectMemory<br>
makes things simpler for the C code generator, which creates one C module<br>
for all the methods in Interpreter and its superclasses. I think this was<br>
probably a case of doing the simplest thing that could possibly work.<br></blockquote><div><br><br>Thanks Dave. I am trying to understand, that&#39;s all. So...suppose I want to have an instance of ObjectMemory as an instance variable of Interpreter and delegate to it instead of inherit, this won&#39;t work with SLANG?   I image that inter.c has both Interpreter and ObjectMemory because of the inheritance. Then, if I do what I said, SLANG, or the translator, or the someone I don&#39;t who, cannot correctly put everything together in a inter.c in the same way it is done right now ?<br>
<br>Thanks!<br><br>Mariano<br></div></div>