You know how I was saying in my DConf talk...

Adam D. Ruppe destructionator at gmail.com
Wed Jul 24 03:01:33 UTC 2019


On Wednesday, 24 July 2019 at 02:12:53 UTC, Ethan wrote:
> On Wednesday, 24 July 2019 at 01:10:34 UTC, Ethan wrote:
> but I've been running in to static foreach and
>> mixin bugs all day.
>
> https://issues.dlang.org/show_bug.cgi?id=20079
> https://issues.dlang.org/show_bug.cgi?id=20080

Those are by design and it is a fairly useful design too. The 
presence of a name in the outer scope overrides the same name 
from the mixin. This allows easy selective customizing of a mixin 
template as you use it.


More information about the Digitalmars-d mailing list