Feb. 11, 2019
4:18 p.m.
On Mon, Feb 11, 2019 at 4:50 PM Konrad Hinsen <konrad.hinsen@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?
Hi, Yes it is possible.
Konrad.
-- Cyril Ferlicot https://ferlicot.fr