April 26, 2017
1:03 p.m.
Hi, No, it's the same as in classes. If methods are on the instance side, you cannot call them unless you instantiate the class. Guille On Wed, Apr 26, 2017 at 2:24 PM, Peter Uhnak <i.uhnak@gmail.com> wrote:
Hi,
would it be possible to somehow call a method directly on a trait?
e.g.
Trait named: #TMyTrait.
then add method
TMyTrait>>twelve ^ 12
and then I could do `TMyTrait twelve "-> 12"`.
Note that I cannot use Class-side of a regular class, because of name clashes with system (Class, ClassDescription, ...) selectors.
Thanks, Peter