Hello Vitor, Yeah, I was talking about that with Pablo (who implemented stateful traits) some times ago.
He told me that aliasing was he way to go. There is no other option to override a trait method without aliasing it. Cheers, Julien --- Julien Delplanque Doctorant à l’Université de Lille http://juliendelplanque.be/phd.html Equipe Rmod, Inria Bâtiment B 40, Avenue Halley 59650 Villeneuve d'Ascq Numéro de téléphone: +333 59 35 86 40 > Le 16 août 2018 à 19:32, Vitor Medina Cruz <vitormc...@gmail.com> a écrit : > > Well, found out about aliasing in > http://pharo.gemtalksystems.com/book/LanguageAndLibraries/Traits/ > <http://pharo.gemtalksystems.com/book/LanguageAndLibraries/Traits/>, is that > the correct way of doint it? > > On Thu, Aug 16, 2018 at 11:30 AM, Vitor Medina Cruz <vitormc...@gmail.com > <mailto:vitormc...@gmail.com>> wrote: > Hello, > > In a class that uses a Trait, how can I override one of it's method by > appending behavior to the method implemented by the Trait? In a typical > override, this is done by calling super: > > method > > super method > "extended behavior" > ... > > > Is there a way to change "super" to a reference the Trait? > > Regards, > Vitor >