>> For traits, requirements were programmatically inferred instead of
>> using #explicitRequirement.
>>
> Not sure i understood.

Is it really necessary that you provides 'self shouldBeImplemented' as  
method body?

> Is there a way to tell to not override the method automatically, if it
> provided in base class?


No that I know. But this goes against the idea of Traits. A class that  
uses a trait is rigorously equivalent to having the class implements  
the methods defined in the trait.
As a consequence, if you trait defines a method 'foo   self  
shouldBeImplemented' and your class C uses the trait, then 'C new foo'  
will execute 'self shouldBeImplemented', independently whether #foo  
was implemented or not in superclasses of C.

Cheers,
Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to