https://bugs.documentfoundation.org/show_bug.cgi?id=150727
--- Comment #5 from jferard <[email protected]> --- I see, the example is very similar to the one I gave. The specific part is: "Changes made to the variables are retained when the procedure or function is exited:". But this is not an automatic consequence of passing parameters by reference. In most programming languages I know, even if you pass a parameter by reference, the parameter is a copy of the reference (not of the target of the reference itself) and a new assignment of the parameter has no effect outside of the function. (A modification of the target value of the reference is of course quite a different thing.) I still believe that's a misleading behavior (not to say a bug), maybe a legacy of GoSub/Return, but I concede. Regarding the VBA support issue, I can confirm that `Option VBASupport 1` does not change the behavior (same config as in the first post). -- You are receiving this mail because: You are the assignee for the bug.
