Idiomatic way to process const/immutable arrays as ranges

bearophile bearophileHUGS at lycos.com
Mon Feb 11 07:53:13 PST 2013


Dicebot:

> string func(in string[] args)
> {
>     return args.join(" "); // compile error, args is not an 
> input range
> }

join() should to able to join a const array of strings.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list