> Is there any way we could edit the bytecode when
> we convert the block to a method to replace these calls with instance variable
> lookups? Or is that just too evil for words?

I would say so, but other people may see it differently.

> This is a little complex due to the fact that the code containing
> the block must be compiled in the first place so that we can run the method to
> add the method... the simplest way round this is to have Class>>method:is:
> take a string, but that's deeply unpleasant. Hmm. Special syntax for a
> partially compiled Block, that becomes an array of parse tokens, perhaps?

There you are, back to special syntax.  Catch-22.  :-)
 
Paolo


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to