Re: template mixin in class is virtual function?

2010-05-21 Thread strtr
== Quote from div0 (d...@users.sourceforge.net)'s article > strtr wrote: > > Is that different from making all functions within the template final? > > Well it delegates the choice of virtual versus non virtual to the class > using the mixin. No idea if that's a good idea or a bad one; I guess > yo

Re: template mixin in class is virtual function?

2010-05-21 Thread div0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 strtr wrote: > == Quote from div0 (d...@users.sourceforge.net)'s article >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> strtr wrote: >>> Or more to the point: >>> >>> Can (Class) template mixin functions be devirtualized by the compiler or do

Re: template mixin in class is virtual function?

2010-05-21 Thread strtr
== Quote from div0 (d...@users.sourceforge.net)'s article > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > strtr wrote: > > Or more to the point: > > > > Can (Class) template mixin functions be devirtualized by the compiler or do > > I (as > > optimization) need to manually copy paste the boile

Re: template mixin in class is virtual function?

2010-05-21 Thread div0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 strtr wrote: > Or more to the point: > > Can (Class) template mixin functions be devirtualized by the compiler or do I > (as > optimization) need to manually copy paste the boiler plate code? You can just wrap the mixin in a final block: import std

Re: template mixin in class is virtual function?

2010-05-21 Thread strtr
Or more to the point: Can (Class) template mixin functions be devirtualized by the compiler or do I (as optimization) need to manually copy paste the boiler plate code?

template mixin in class is virtual function?

2010-05-19 Thread strtr
Will template-mixin-functions always be virtual in classes? "Mixins can add virtual functions to a class" http://www.digitalmars.com/d/1.0/template-mixin.html related: http://odefu.blogspot.com/2008/12/composite-oriented-programming.html