std.range design part of the language..?

2010-08-15 Thread simendsjo
From http://digitalmars.com/d/2.0/statement.html#ForeachStatement, Foreach over Structs and Classes with Ranges. I read this as the Range design is a part of the language now. Is this correct? And is the spec a bit out of date in the examples? It says foreach-/reverse translates to for(

Re: std.range design part of the language..?

2010-08-15 Thread Jonathan M Davis
On Sunday 15 August 2010 10:12:06 simendsjo wrote: From http://digitalmars.com/d/2.0/statement.html#ForeachStatement, Foreach over Structs and Classes with Ranges. I read this as the Range design is a part of the language now. Is this correct? And is the spec a bit out of date in the

Re: std.range design part of the language..?

2010-08-15 Thread simendsjo
On 15.08.2010 23:58, Jonathan M Davis wrote: On Sunday 15 August 2010 10:12:06 simendsjo wrote: From http://digitalmars.com/d/2.0/statement.html#ForeachStatement, Foreach over Structs and Classes with Ranges. I read this as the Range design is a part of the language now. Is this correct?