class formats

Michael Haupt mhaupt at gmail.com
Tue May 16 12:40:02 UTC 2006


Hi,

apologies for the cross-post to two lists, but I wasn't too sure where
to ask this.

I've just been browsing the VM sources for details on the encoding of
class formats used in object instantiation.

Apparently, it seems as if the class format word that can be retrieved
by sending #format to a class has the same layout as the standard
header word of all objects. The only difference seems to be that the
format word is shifted left by 1.

Can anyone confirm this? Or am I wrong?

Thanks,

Michael



More information about the Squeak-dev mailing list