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

--- Comment #2 from Vladimir Sokolinskiy <[email protected]> ---
Possible misunderstandings with the ByVal construct are related to the
fundamentally different behavior of arrays in LO Basic and VBA.

Unlike VBA, in LO basic after executing the assignment operator

array2=array1

the variables array1 and array2 will refer to the same array instance in
memory.

Thus, in LO Basic, the behavior of the ByVal construct for array arguments is
similar to the behavior for object arguments. After executing the procedure
(subroutine, function), the actual parameter - variable will refer to the same
array in memory, but this does not guarantee the immutability of the specified
array.

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

Reply via email to