Vinzent Höfler schrieb:
> Florian Klaempfl <flor...@freepascal.org>:
> 
>> Out is not made to solve such problems but plainly to work with
>> COM/Corba.
> 
> Really? Well, that's not what the FPC manual says:

And? Is there a different reason written? And even if it is:
documentation writer know less than implementors :)

> 
> -- 8< --
> The purpose of an out parameter is to pass values back to the calling 
> routine: The variable is passed by reference. The initial value of the 
> parameter on function entry is discarded, and should not be used.
> 
> If a variable must be used to pass a value to a function and retrieve data 
> from the function, then a variable parameter must be used. If only a value 
> must be retrieved, a out parameter can be used.
> -- 8< --
> 
> So having the semantic difference between "var" and "out" and thus the 
> differentiation between uninitialized and (pre)initialized parameters is 
> merely a random achievement?
> 
> 
> Vinzent.
> 

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to