Reflectively it is that easy. It�s #addInstVarNamed:
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.
>
>
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