[Pharo-users] Traits for class methods?

Cyril Ferlicot cyril.ferlicot at gmail.com
Mon Feb 11 14:37:36 EST 2019


On Mon 11 Feb 2019 at 20:36, Hilaire <hilaire at drgeo.eu> wrote:

> With singleton you will access class variable, which you can't with a
> trait, so you will need a setter, but should work I guess


Hi,

Since Pharo 7, Traits are statefuls.

See documentation at:
https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/Traits.md


>
> Hilaire
>
> --
> Dr. Geo
> http://drgeo.eu
>
>
>
> --
Cyril Ferlicot
https://ferlicot.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20190211/32247864/attachment.html>


More information about the Pharo-users mailing list