Explicitly saying ref or out when invoking a function

soso vcd9900123 at hotmail.com
Tue Aug 11 20:15:55 PDT 2009


Ary Borenszweig Wrote:

> In C# when you define a function that takes an out or ref parameter, 
> when invoking that function you must also specify ref or out. For example:
> 
> void fun(ref uint x, double y);
> 
> uint a = 1;
> double b = 2;
> fun(ref a, b);
> 
> What do you think?


 I agree



More information about the Digitalmars-d mailing list