bearophile bearophileh...@lycos.com wrote:
Recently lot of work has being done about inout, and I think it is now
usable in D2.
So this has made me ask how much needs to be done (in D language and/or
Phobos) to allow the correct compilation of exactly this useless demo
program (I think it
kennytm:
Allow a template argument to treat a const(T[]) as a const(T)[] is a
different and a known problem IIRC.
I don't fully understand the meaning of your answer, but I didn't want to imply
that those two problems are new or unknown.
Bye,
bearophile
Recently lot of work has being done about inout, and I think it is now usable
in D2.
So this has made me ask how much needs to be done (in D language and/or Phobos)
to allow the correct compilation of exactly this useless demo program (I think
it is correct):
import std.algorithm, std.range,