incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 120069] New: [StarBasic] Typed parameters are copied instead of referenced
Date Sat, 23 Jun 2012 23:40:55 GMT

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

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

Sub in_out(x as integer)
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.

View raw message