https://issues.apache.org/ooo/show_bug.cgi?id=120069

          Priority: P3
            Bug ID: 120069
          Assignee: [email protected]
           Summary: [StarBasic] Typed parameters are copied instead of
                    referenced
          Severity: major
        Issue Type: DEFECT
    Classification: Code
                OS: All
          Reporter: [email protected]
          Hardware: All
            Status: UNCONFIRMED
           Version: AOO 3.4.0
         Component: code
           Product: api

Sub Test
x=-1
in_out x
print x
REM should print 13, prints -1
End Sub

Sub in_out(x as integer)
x=13
End Sub

This does not make any difference and should not since ByRef is the default:
Sub in_out(ByRef x as integer)

This makes a difference. Caller prints 13:
Sub in_out(x)

I'd consider this as a regression since it breaks old Basic macros.

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

Reply via email to