Re: foreach loop over retro can crash gdmd
On 28 June 2012 18:16, Joseph Rushton Wakeling wrote: > Hello all, > > The following code crashes my version of GDC (4.6.3) when I try and compile > it: > > > import std.range, std.stdio; > > void main() > { > double[] a = [ 0, 1, 2, 3, 4,
foreach loop over retro can crash gdmd
Hello all, The following code crashes my version of GDC (4.6.3) when I try and compile it: import std.range, std.stdio; void main() { double[] a = [ 0, 1, 2, 3, 4, 5 ]; foreach(i, x; retro(a)) writeln(x); } //