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

rikki cattermole rikki at cattermole.co.nz
Thu May 24 12:08:57 UTC 2018


On 25/05/2018 12:06 AM, biocyberman wrote:
> 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

https://docarchives.dlang.io/v2.078.0/phobos/std_algorithm_mutation.html#reverse


More information about the Digitalmars-d-learn mailing list