Apache OpenOffice (AOO) Bugzilla – Issue 17946
Basic: inconsistencies in params checking
Last modified: 2017-05-20 11:29:25 UTC
REM ***** BASIC ***** 'the code shows some inconsistencies 'on params checking, and more Option Explicit Sub test_params dim vVar, vVar1 vVar = test(1, 2) vVar = test(1, 2, 3) vVar = test(1, 2, 3, vVar(,,,)) print vVar print vVar(,,,,"commas",,,,,"here",, ) print vVar(Null(,,true,,,,false, nothing)) vVar1 = Now("fake", "params", "here") print vVar1 End Sub function test(a,b) test = a + b end function
Andreas, please take care of this and target appropriately.
-> OOo 2.0
*** Issue 26918 has been marked as a duplicate of this issue. ***
cp: retargeted to Office-Later due to limited ressources
I see this as very uncritical. Additional parameters are ignored, but no programmer is forced to pass too much parameters and even if he does, the programm still works correctly. Besides this, it's risky to change this because of backward compati- bility and because it affects very sensitive parts of the Basic core. I don't think that this problem is worth to take any risks -> P5
Reset assigne to the default "issues@openoffice.apache.org".