A little late, but just for the record, I came across a case where var or out made a big difference.
I was working on a SOAP web service that exported the following method:
function GetUser( out User :TUser ) :TResult;
which was imported into C # as an equivalent
function GetUser( out Result :TResult) :TUser;
when i changed out to var , it imported it correctly.
I assume that calling Delphi SOAP treats the result of the function as an out parameter, and the presence of two out parameters confuses the Delphi SOAP routines. I am not sure if there is a workaround allowing the use of out parameters.
Steve Feb 20 '14 at 17:17 2014-02-20 17:17
source share