string mixin only works once per block?

Dicebot public at dicebot.lv
Fri Apr 11 07:37:30 PDT 2014


On Friday, 11 April 2014 at 14:31:47 UTC, Chris wrote:
> Just of the top of my head, have you tried
>
> mixin template Link {
>   const string link() {
>   // ...
>   }
> }
>
> or something like this?

You can't use template mixins as statements, those are only for 
declarations.


More information about the Digitalmars-d-learn mailing list