On 24 May 2010 10:31, Hernán Morales Durand <[email protected]> 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
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



-- 
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to