[Pharo-dev] Losing instance variable addition

Marcus Denker marcus.denker at inria.fr
Thu Oct 31 13:16:29 EDT 2013

On 31 Oct 2013, at 18:12, Stéphane Ducasse <stephane.ducasse at inria.fr> wrote:

> On Oct 30, 2013, at 10:36 PM, Igor Stasenko <siguctua at gmail.com> wrote:
>> I don't think there's something to fix.
>> You cannot 'extend' classes belonging to other package in any other way
>> than adding extension methods.
> Exact this was my conclusion too.
>> Allowing extension of ivars or any other vars by foreign package
>> is road to nowhere.
>> I would not like if shape of my kernel classes depends on what packages i load
>> or in what order i loaded them. 
>> To me it is clear that if one needs to add/remove/modify instance variables
>> of some class, those changes should belong to the package containing that class,
>> not some random package.
> If that would be that simple :)
> The case of Gisela is that her tool should extend AST node.

The AST has a property dictionary… not the nicest thing, but it could be used.


More information about the Pharo-dev mailing list