Mixin Template Function Attributes

Marc Schütz via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 20 11:16:38 PST 2016


On Wednesday, 20 January 2016 at 16:37:31 UTC, jmh530 wrote:
> I'm not sure if this is how the behavior is supposed to be or 
> if it is a bug.

It's not a bug. The `@attribute:` syntax applies to all following 
declarations _inside the current scope_, i.e. until your mixin 
templates closing `}`.


More information about the Digitalmars-d-learn mailing list