incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120069] New: [StarBasic] Typed parameters are copied instead of referenced
Date Sat, 23 Jun 2012 23:40:55 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120069

          Priority: P3
            Bug ID: 120069
          Assignee: ooo-issues@incubator.apache.org
           Summary: [StarBasic] Typed parameters are copied instead of
                    referenced
          Severity: major
        Issue Type: DEFECT
    Classification: Code
                OS: All
          Reporter: villeroy@t-online.de
          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.

Mime
View raw message