On 6 January 2013 20:15, Chris Muller asqueaker@gmail.com wrote:
Hint: in Pharo 1.4 sending #class is not magic any more and it can be overriden, so proxies and write-barriers can be even more transparent.
That's great I'd love to get rid of #maOriginalClass. Do you know how the "magic" was removed?
Object>>class "Primitive. Answer the object which is the receiver's class. Essential. See Object documentation whatIsAPrimitive."
<primitive: 111> self primitiveFailed
So the magic is still there, it's just that #class is not inlined by the VM any more and can be overriden. Which is great.