yes when I want to do that for real Hi nick I do SystemClassFoo addInstanceVariableName: 'myInstanceVariable' and put it in an initialize of my class Clear instance Variable management is not that good.
As far as i can tell, this is not supported. If you allow things like that, then system become very fragilie.
Suppose that you have two independently developed packages, which adding instance variable to same external class under same name. Such kind of conflicts is impossible to solve, because you never know what combination of package(s) could be loaded.
Instead, what you can do is to save own version of package (with class where you added ivar) and distribute your code with this version of package.
-- Nick
-- View this message in context: http://forum.world.st/Adding-instance-variables-to-existing-classes-in-Monti... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko AKA sig.