Hello Ben,
The limit you see for instance variables is due to:
- Class format encoding (Memory manager dependent)
- Bytecode set encoding (Bytecode set dependent)
The 255 inst var limit is enforced both by:
- the V3 Memory manager
- the SqueakV3PlusClosures bytecode set.
Now we have Spur
Minor curiosity... I was wondering about the limits on the number of
instance variables and class variables (particularly the latter regarding
large FFI enumerations), so I produced a script to experiment with.
Results:
* Class Variables seem to have no practical limit. Although running 6C