On 24 May 2010 10:31, Hernán Morales Durand <hernan.morales@gmail.com> wrote:
Hello
Just to make a little note. I'm adapting the lightweight classes package to work with CompilerMethodTrailer. In this method
CompiledMethodTrailer>>createMethod: numberOfBytesForAllButTrailer header: headerWord     | meth |     encodedData ifNil: [ self encode ].     meth := CompiledMethod newMethod: numberOfBytesForAllButTrailer + size header: headerWord.     ...
I need to answer a different kind of CompiledMethod, it would be nice if my own CompiledMethod class could be specified in some way to make the CompiledMethodTrailer more flexible.
Yes, you could add a class parameter, so method will take 3 createMethod: numberOfBytesForAllButTrailer header: headerWord class: aMethodClass
Cheers,
Hernán
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.