Help for beginners (was Re: Request for Comment: MethodAnnotations for 3.9alpha)

Andreas Raab andreas.raab at gmx.de
Sun Aug 28 22:57:48 UTC 2005


Lic. Edgar J. De Cleene wrote:
> What's wrong of having a Class in the usual way with the
 > internals suited to your wish ?

There is nothing wrong with it, but in the case of CompiledMethod it is 
not possible. That's because CompiledMethod has a "magical" format which 
is specifically recognized by the VM and any attempt to alter that 
format will crash the VM faster than you can say "ouch".

> Sorry if I wasting your time, but as String refactoring is causing
 > me some problems, I really scare some radical as touching 
CompiledMethods.

I can see that but contrary to Strings which you probably use and 
manipulate in much of your code, how often have you had the need to 
access CompiledMethods? Not use them implicitly (by running some) but 
use them explicitly, to query for the byte code, literals, or similar.

> Maybe I total miss the point ?

In a sense you are. Most people won't even notice that change - again 
contrary to something as widely used as String, CompiledMethod is used 
in extremely rare cases (mostly in the compiler and some in the 
debugger). Think about it like switching to a new compiler: Do you care 
as long as it works? Probably not.

Cheers,
   - Andreas



More information about the Squeak-dev mailing list