Re: DMD2, Phobos: striding range

2010-03-26 Thread Philippe Sigaud
On Fri, Mar 26, 2010 at 11:16, Mihail Strashun wrote: > Hm, changing "ref" on lines 716 and 724 to "auto ref" changes nothing. > Changing it to simply "auto" seems to solve problem. > > How "auto ref" feature is supposed to work? This ( > http://www.digitalmars.com/d/2.0/function.html ) descripti

Re: DMD2, Phobos: striding range

2010-03-26 Thread Mihail Strashun
Philippe Sigaud wrote: On Mon, Mar 8, 2010 at 13:00, Lars T. Kyllingstad wrote: It's definitely a bug. I've reported it: http://d.puremagic.com/issues/show_bug.cgi?id=3894 std.range use ref everywhere. I had to comment them out to get any composition to work. But the 'auto ref'

Re: DMD2, Phobos: striding range

2010-03-08 Thread Philippe Sigaud
On Mon, Mar 8, 2010 at 13:00, Lars T. Kyllingstad wrote: > It's definitely a bug. I've reported it: > > http://d.puremagic.com/issues/show_bug.cgi?id=3894 std.range use ref everywhere. I had to comment them out to get any composition to work. But the 'auto ref' feature added a release ago was

Re: DMD2, Phobos: striding range

2010-03-08 Thread Mihail Strashun
Thanks! Lars T. Kyllingstad wrote: Mihail Strashun wrote: Following simple program fails to compile with latest DMD 2.041 (In fact it fails to compile with any dmd2 version i have tried): "test.d" > import std.stdio; > import std.range; > import std.algorithm; > > int main() > { > au

Re: DMD2, Phobos: striding range

2010-03-08 Thread Lars T. Kyllingstad
Mihail Strashun wrote: Following simple program fails to compile with latest DMD 2.041 (In fact it fails to compile with any dmd2 version i have tried): "test.d" > import std.stdio; > import std.range; > import std.algorithm; > > int main() > { > auto test = stride( iota(0,10,1) , 2 );

DMD2, Phobos: striding range

2010-03-08 Thread Mihail Strashun
Following simple program fails to compile with latest DMD 2.041 (In fact it fails to compile with any dmd2 version i have tried): "test.d" > import std.stdio; > import std.range; > import std.algorithm; > > int main() > { > auto test = stride( iota(0,10,1) , 2 ); > return 0; > } Output: [m.