return type of std.algorithm.mutation.reverse changed for good?

biocyberman biocyberman at gmail.com
Thu May 24 12:06:38 UTC 2018


I am testing with DMD 2.078.2 locally. This tiny snippet works on 
dlang's online editor: https://run.dlang.io/is/nb4IV4

But it does not work on my local dmd.

import std.algorithm.mutation;
import std.stdio;
char[] arr = "hello\U00010143\u0100\U00010143".dup;
writeln(arr.reverse);

Error: template std.stdio.writeln cannot deduce function from 
argument types !()(void)

The document says reverse returns a range: 
https://dlang.org/phobos/std_algorithm_mutation.html#reverse


More information about the Digitalmars-d-learn mailing list