Idiomatic way to process const/immutable arrays as ranges

Steven Schveighoffer schveiguy at yahoo.com
Mon Feb 11 11:56:29 PST 2013


On Mon, 11 Feb 2013 14:52:51 -0500, Steven Schveighoffer  
<schveiguy at yahoo.com> wrote:


> With that change, then you can compile my original suggestion, or my  
> later suggestion.

Actually, it seems that even args.join(" ") works, without changing to the  
tail-const type...

That is technically correct, but I'm not sure why.  I would have expected  
isInputRange!(const string[]) to be false.

-Steve


More information about the Digitalmars-d-learn mailing list