[...]
b[0 .. a.length-1] = a[];You'll get a RangeError being thrown when you run the code.
[...] Therefore a fix might be to not deminish the length: b[ 0 .. a.length]= a[]; -manfred
Manfred Nowak via Digitalmars-d-learn Thu, 14 Nov 2024 05:11:42 -0800
[...]
b[0 .. a.length-1] = a[];You'll get a RangeError being thrown when you run the code.
[...] Therefore a fix might be to not deminish the length: b[ 0 .. a.length]= a[]; -manfred