[Vm-dev] Why Interpreter subclass ObjectMemory ?

David T. Lewis lewis at mail.msen.com
Thu Feb 11 12:55:49 UTC 2010


On Thu, Feb 11, 2010 at 10:19:34AM +0100, Mariano Martinez Peck wrote:
>  
> I ask without knowing anything of the background or context. I have just saw
> it and I cannot understand very much why it is like that. I ask myself if
> composition would be better.
> Probably is something related to SLANG, but I don't know.

Yes, that is right. Organizing the Interpreter as a subclass of ObjectMemory
makes things simpler for the C code generator, which creates one C module
for all the methods in Interpreter and its superclasses. I think this was
probably a case of doing the simplest thing that could possibly work.

Dave



More information about the Vm-dev mailing list