Why do template mixins have their own scope?
Jacob Carlborg
doob at me.com
Sun Jul 17 03:14:01 PDT 2011
On 2011-07-16 20:32, Trass3r wrote:
> I guess this is the cause for
> http://d.puremagic.com/issues/show_bug.cgi?id=3332
> It makes it practically impossible to mixin constructors because
> overload resolution doesn't work.
I've been knowing that template mixins behave like this for a long time.
Don't know why I created that ticket, must have forgotten how mixins
work. What is confusing is that the documentation says that a template
mixin is just like copying the code and pasting it in the mixin place.
Which it's not, shown by this ticket.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list