Can't print inout parameter

gerleim gerleim_NoSpamDeleteThis at gmail.com
Wed Jul 3 17:27:13 PDT 2013


> inout(int) foo (inout int a)
> {
>     writeln(a);
>     return a;
> }

I don't know if this is the official method, but
     writeln(cast(const)x);
works.

Trying to get answers at: 
http://stackoverflow.com/questions/17460065/how-to-print-inout-parameters


More information about the Digitalmars-d-learn mailing list