Interesting rant about Scala's issues

bearophile bearophileHUGS at lycos.com
Fri Apr 4 12:05:35 PDT 2014


> array[Succ!(Index.A)] = t;
> auto i = Index.A;
> array[i.succ] = t;

And with "enum precondition" in the succ() function you can do 
both cases with a single function:

array[Index.A.succ] = t;
auto i = Index.A;
array[i.succ] = t;

Bye,
bearophile


More information about the Digitalmars-d-announce mailing list