alias and mixin

evilrat via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 1 04:56:33 PDT 2014


On Monday, 1 September 2014 at 11:23:37 UTC, ketmar via 
Digitalmars-d-learn wrote:
> On Mon, 01 Sep 2014 10:57:41 +0000
> evilrat via Digitalmars-d-learn 
> <digitalmars-d-learn at puremagic.com>
> wrote:
>
> p.s. you should really read about D mixins and templates. they 
> aren't
> such intuitive sometimes, has their set of funny restrictions, 
> and it
> may be hard to 'guess the right way' sometimes.
>
> but to be honest, i wasn't read any books and found alot of 
> things by
> experimenting, so it's not a dead-end way too. ;-)

thanks again, i also made tweaks to my original template to check 
for aliases and now it works too, means that error message was 
totally misleading.
btw i had read some articles about mixins and templates but still 
difference between template and mixin template is somewhat 
confusing.

and D states "intuitive is the way", yeah...


More information about the Digitalmars-d-learn mailing list