https://bugs.documentfoundation.org/show_bug.cgi?id=101631

--- Comment #11 from tanh <tanhda...@gmail.com> ---
(In reply to Aron Budea from comment #1)
> The direct reason for the self-modifying behavior is that function
> "stableford" modifies the "score" parameter, which is apparently passed by
> reference.
> 
> I can't tell if it's the correct behavior or not, got confused by different
> VB-related MS resources that state contradicting things:
> https://msdn.microsoft.com/en-us/library/aa263527(v=vs.60).aspx "Passing by
> reference is the default in Visual Basic."
> https://msdn.microsoft.com/en-us/library/ddck1z30.aspx "The default in
> Visual Basic is to pass arguments by value."
> They're for different VB versions, and not VBA, either, but it's still weird.
> 
> Until this is clarified, as a workaround you can copy the parameter to a
> local variable, and modify that.

Just for note, the 'Visual Basic" referred to in the .NET MS resource "The
default in Visual Basic is to pass arguments by value", is VB.Net

VB.net is to VBA as c# is to c, only less so.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to