change mixins
Walter Bright
newshound1 at digitalmars.com
Sun Feb 14 16:39:07 PST 2010
Bill Baxter wrote:
> I have had one use for templates that are both stand-alone and mixed
> in -- that's collections of aliases and utility functions based on a
> particular type.
You'll possibly run into a serious problem doing that. With templates,
the name lookup is done in the scope of the template definition. With
mixin templates, name lookup is done in the scope of the template
instantiation.
More information about the Digitalmars-d
mailing list