ah ok I understand now. I assume the proper way would be to have 2 dirty packages in this case, one with the changed Class (containing the new instance variable ) and another with the class that sends the message to the mother class to add the instance variable.�


On Thu, Oct 31, 2013 at 11:20 AM, Marcus Denker <marcus.denker@inria.fr> wrote:

On 31 Oct 2013, at 10:16, kilon alios <kilon.alios@gmail.com> wrote:

> Wow so much work to add an instance variable ?
>
> In python is as simple as
>
> MyClass.newVariable = 30
>
> I always assumed Pharo was very similar.
>
>
Reflectively it is that easy. It�s #addInstVarNamed:

But then the package is dirty. And when you save the package, this Ivar is part of that
package with the class and not part of the package that called #addInstVarNamed:


� � � � Marcus