tail const

Simen kjaeraas simen.kjaras at gmail.com
Sun Dec 5 06:41:56 PST 2010


Simen kjaeraas <simen.kjaras at gmail.com> wrote:

> I've also considered a template on the form
>
>      mixin tailConst!( SimpleRange, SimpleRange!( Tail!T ) );
> or
>      mixin tailConst!( SimpleRange, Tail!T );

A closer look at this reveals that it won't work that simply, because
SimpleRange in this context is the struct, not the template. This,
however, works:

     mixin tailConst!( .SimpleRange, TailT! );

Not sure how I like this.

-- 
Simen


More information about the Digitalmars-d mailing list