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

--- Comment #1 from tanh <tanhda...@gmail.com> ---
In MS VBA, arguments are passed BYREF as default. (Documentation claims that
VB.NET is different).

In MS VBA the test case shown creates a temporary reference by using an
expression

DummySub (a)

The expression (a) is created, referenced, updated to 'Y', and discarded.

Subsequent use of the variable a is not affected by the discarded (expression)


To demonstrate the same behavior using Call syntax:

Call DummySub( (a) )

Wrapping a variable in () creates an expression. The CALL syntax requires call
brackets, which are not expression brackets.

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

Reply via email to