Hi, I see this in Pharo 1.1 When a Trait is copied the environment is not passed to the copy
Trait >> copy | newTrait | newTrait := self class basicNew initialize name: self name traitComposition: self traitComposition copyTraitExpression methodDict: self methodDict copy localSelectors: self localSelectors copy organization: self organization copy. newTrait classTrait initializeFrom: self classTrait. ^newTrait A possible solution Trait >> copy | newTrait | newTrait := self class basicNew initialize name: self name traitComposition: self traitComposition copyTraitExpression methodDict: self methodDict copy localSelectors: self localSelectors copy organization: self organization copy. *newTrait environment: self environment.* newTrait classTrait initializeFrom: self classTrait. ^newTrait Cheers -- Germán Leiva [email protected]
_______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
