iota with custom boundary conditions

bearophile bearophileHUGS at lycos.com
Tue Nov 13 07:02:22 PST 2012


monarch_dodra:

> The only time I could possibly see a use for open-close in 
> iota, is when you want to iterate all the way to T.max.

Like when you want to fill an array with all ubytes or all chars. 
Currently to do this with foreach or iota you need an unsafe 
cast. This is not good.

Bye,
bearophile


More information about the Digitalmars-d mailing list