[Vm-dev] About the image

stephane ducasse stephane.ducasse at gmail.com
Thu Aug 19 13:11:30 UTC 2010


> 
> The problem is in Interpreter>>classNameOf: aClass Is: className which uses the Class' name ivar directly. This causes several "interesting" issues with the SmartSyntaxBlaBlaPlugins (such as JPEGReadWriterPlugin).

Yes marcus was reminding that. 

> Eugh.  In the VW VM I added code to choose a class in the specialObjectsArray (Array) and search it for a byte object with the characters 'Array' and use that as the class name index.  Similarly its class was searched for an object equal to Array and that slot was used as the thisClass index.  I see I was too lazy to do that in StackInterpreter>>initializeInterpreter but I should, and should introduce classNameIndex and thisClassIndex and use them in place of the hard-coded constants.  That way one can save immediately after adding/removing the behavior inst var and have the VM get things right on start-up.

late binding decision is what I like :)

Stef


More information about the Vm-dev mailing list