Using inout in delegates
Jacob Carlborg
doob at me.com
Thu Oct 4 23:18:34 PDT 2012
On 2012-10-04 16:09, Jesse Phillips wrote:
> IIRC, inout must be applied to the return type too, and it only works in
> templates.
What? The whole point of "inout" is to NOT have to use templates since
the compiler will generate the same code anyway.
http://dlang.org/function.html#inout-functions
I also tried to make it a template but I get the same result. Actually
in my original code it's a template.
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list