having problem with `std.algorithm.each`

visitor via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 30 02:50:07 PST 2015


On Monday, 30 November 2015 at 09:56:08 UTC, ref2401 wrote:
> DMD 2.069.1
> OS Win8.1 Enterprise

in a multiline statement, i believe you must use :
arr.each!((ref e) {
     writeln(e);
     ++e;
})
"=>" is for oneliner

though i don"t understand why it fails silently ??


More information about the Digitalmars-d-learn mailing list