September 01, 2014 Re: alias and mixin | ||||
---|---|---|---|---|
| ||||
Posted in reply to evilrat Attachments: | On Mon, 01 Sep 2014 10:57:41 +0000 evilrat via Digitalmars-d-learn <digitalmars-d-learn@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. ;-) |
September 01, 2014 Re: alias and mixin | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | 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@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...
|
September 01, 2014 Re: alias and mixin | ||||
---|---|---|---|---|
| ||||
Posted in reply to evilrat Attachments: | On Mon, 01 Sep 2014 11:56:33 +0000 evilrat via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote: > and D states "intuitive is the way", yeah... it's still way better than C++. ;-) |
Copyright © 1999-2021 by the D Language Foundation