Make all functions from std.typecons "Proxy" inout

sclytrack sclytrack at iq87.fr
Fri May 11 05:05:33 PDT 2012


> import std.stdio;
>
> void test1(shared const float [] p)
> {
> writeln("works");
> }
>

Nope, "shared const" still doesn't make sense to me.
In the above example the p values can still change
at any time.

Why does "shared const" even exist?


More information about the Digitalmars-d-learn mailing list