Bill Allombert on Tue, 11 Mar 2025 15:46:37 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: calling by reference


On Tue, Mar 11, 2025 at 03:27:28PM +0100, Ruud H.G. van Tol wrote:
> 
> The user manual states:
> 
> 2.7.2 [...] If an argument is prefixed by a tilde ~ in the function
> declaration and the call, it is passed by reference. (If either the
> declaration or the call is missing a tilde, we revert to a call by value.)

Actually it depends if the variable is lexically or dynamically scoped.
Please do not forget the ~!

Cheers,
Bill