June 29, 2013
6:19 p.m.
On 29 June 2013 20:12, Camillo Bruni <camillobruni@gmail.com> wrote:
Working on the new class builder I have a hard time figuring out the full trait semantics.
If I use a trait on instance side, does that imply that its classTrait on the metaclass?
yes. Trait resembles same dual property as class (it has instance side and class side methods). But i also not really like it. IMO single trait should be applied separately only to selected behavior not two at once (class and its metaclass), and you should be able to choose which one. -- Best regards, Igor Stasenko.