Re: [Pharo-project] problem mixing Traits and Inheritance

2009-07-09 Thread Alexandre Bergel
As we agree some times ago, the method > atEnd >self explicitRequirement. should not be defined. Alexandre On 8 Jul 2009, at 11:08, Cyrille Delaunay wrote: > Hi, > > Here's my problem : > - I have the class NSCollectionStream which define ( for example ) > #atEnd > - I hav

Re: [Pharo-project] problem mixing Traits and Inheritance

2009-07-08 Thread Stéphane Ducasse
On Jul 8, 2009, at 11:31 AM, Adrian Lienhard wrote: > We had a discussion about this on this mailing list some time ago. The > conclusion, as far as I remember, was that yes, ideally it should > detect that the method exists in a superclass and hence should not add > the atEnd method to the subcl

Re: [Pharo-project] problem mixing Traits and Inheritance

2009-07-08 Thread Adrian Lienhard
We had a discussion about this on this mailing list some time ago. The conclusion, as far as I remember, was that yes, ideally it should detect that the method exists in a superclass and hence should not add the atEnd method to the subclass in your example. This is not that easy to implemen

[Pharo-project] problem mixing Traits and Inheritance

2009-07-08 Thread Cyrille Delaunay
Hi, Here's my problem : - I have the class NSCollectionStream which define ( for example ) #atEnd - I have the class NSSubclassOfCollectionStream ( which is a suclass of NSCollectionStream). When I use a trait in NSSubclassOfCollectionStream that required the method #atEnd, the defintion in NSCol