Re: Range literals

2010-08-24 Thread Norbert Nemec
On 24/08/10 08:56, Peter Alexander wrote: Proposal: Make a..b a literal that evaluates to iota(a, b) or some built-in equivalent. Indeed, this has been discussed before and I believe people were generally in favor of this idea. I agree that it should still be considered for DMD2. As I see it,

Range literals

2010-08-24 Thread Peter Alexander
I know that D2 is supposed to be closed for new features, but I thought I'd mention this anyway just in case it's deemed easy/simple enough for inclusion, or even if it will just get considered for later on. Anyway, we all know that we can do the following: foreach (int x; 0..10) writeln