I've used the following approach for a couple methods I need in more than one place:
- fileout the protocol from class A. - open filebrowser, find the fileout file. - search/replace in the bottom pane the class A by class B - fileIn Quick and works. Phil On Mon, Oct 27, 2014 at 1:49 PM, Esteban A. Maringolo <[email protected]> wrote: > I wonder how JavaScript guys manage which behavior comes from base and > which from a mixin. :) > I used ExtJS, and you could do extensive use of mixins, but once they > were mixed, it's all the same piece of code. > > I started using Traits and then moved away back to good'ol > subclassification and, in some cases, code duplication. > > > Regards! > Esteban A. Maringolo > > > 2014-10-27 7:44 GMT-03:00 [email protected] <[email protected]>: > > Basically, plugging a trait in a class dynamically should be doable. > > Especially with our beloved platform that can ;-) > > > > Otherwise, this reduces their usefulness quite a lot for composing things > > cleanly. > > > > Hey, Javascript people can do these things. Admittedly, all is dirty all > the > > time there .... :-p > > > > Phil > >
