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

Rafael Lima <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Rafael Lima <[email protected]> ---
Indeed you're right. I tested again and in MS VBA the default is ByVal. I must
have made some mistake in my previous testing.

However, for some reason LibreOffice Basic chose to use ByRef as default. See
[1] for more info.

The strange bit is when you use "Option VBASupport 1" and the behavior does not
change. If LO and MS Basic are different in this regard, then using this option
should change the behavior in LibreOffice to make it behave as in VBA.

Naturally, since LO chose to go with ByRef as default, we cannot change it now
to avoid breaking backwards compatibility. But there seems to be something
wrong with VBA support.

@Mike do you have any opinion on this? Why is ByRef the default in LO? Should
we change the default to ByVal in VBA support?

[1] https://help.libreoffice.org/7.4/en-US/text/sbasic/shared/03090409.html

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

Reply via email to