Re: How to write *include* like Ruby?

lijie <[email protected]> Sun, 20 May 2012 10:44:12 +0800
Newsgroups gmane.comp.lang.io
Message-ID <CABQ_GqmcpSwR24ELWeQUchvoGwoVQ3D0+qF=FYkP0dRN5jx3CA@mail.gmail.com>
Hi Steve,


> 1. Traits not overriding object slots and updates to occur on the object:
>
> Object appendNonOverridingTrait := method(aTrait,
> self addProto(aTrait)
> return self
> )
>

Yeah, it looks like what I want, thanks.


Regards,

Li Jie