Hi Marcel,
thank you for the clarification. In this case, I will have to rethink when traits are actually useful ... But eventually, I will find a convincing usage example someday. :-)
Best,
Christoph
Am 07.05.2021 18:13:24 schrieb Thiede, Christoph <[hidden email]>:
Hi all,
I just was trying to activate a super method from a trait but got a DNU:
MyTrait >> #foo ^0
Object subclass: MyObject uses: MyTrait.
MyObject >> #foo ^super foo + 1
Is this not how traits are expected to work? Or is there any other way to reuse the default logic specified in the trait? Do I need to return to traditional inheritance in order to achieve this?
Thanks in advance!
Best,
Christoph
Free forum by Nabble | Edit this page |