Fully dynamic d by opDotExp overloading

bearophile bearophileHUGS at lycos.com
Sat Apr 18 05:18:54 PDT 2009


downs:
> bearophile:
> > But a static foreach (on a static data structure that has opApply) is not doable yet, I think.
>
> Foreach on a tuple is evaluated at compile-time.

Yes, that's the whole point of that Range!().
But you can't use that trick on an associative array, or a struct with OpApply, etc.

Bye,
bearophile



More information about the Digitalmars-d mailing list