Dynamically changing the shape of a class

Alexandre Bergel bergel at iam.unibe.ch
Thu Jun 17 09:51:25 UTC 2004


Sorry, a mistake.

become: is also used in Array>>elementsExchangeIdentityWith: otherArray to migrate oldShaped  to newShaped instances.

Thanks Craig and Goran!

Alexandre


On Thu, Jun 17, 2004 at 11:21:17AM +0200, Alexandre Bergel wrote:
> Hi!
> 
> Adding new instance variable is done by calling a become: like
> oldclassWithoutTheNewIV become: newclassWithTheNewIV
> 
> Therefore this operation requires some primitive in the VM. Is it necessary? If this mechanism is not implemented in Java is it only because the VM does not have a become: ?
> 
> Cheers,
> Alexandre
> 
> -- 
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.iam.unibe.ch/~bergel
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



More information about the Squeak-dev mailing list