[Pharo-users] Traits for class methods?

Cyril Ferlicot cyril.ferlicot at gmail.com
Mon Feb 11 11:18:34 EST 2019

On Mon, Feb 11, 2019 at 4:50 PM Konrad Hinsen
<konrad.hinsen at fastmail.net> wrote:
> Hi everyone,
> A quick question: is it possible to use traits to define class methods?
> For example, could the popular singleton pattern consisting of the
> three class methods #uniqueInstance, #new, and #reset plus the instance
> variable uniqueInstance be packaged as a trait?


Yes it is possible.

> Konrad.

Cyril Ferlicot

More information about the Pharo-users mailing list