Lasso Soft Inc. > Home

RhinoTrac

LassoSoft Ticket Tracking System

NOTE: If you are using Lasso Server 9.3 please Log your ticket directly via the LUX admin as this will give us more information about your issue.

Lasso 9 Issues



Ticket #7408: Methods fail if optional param omitted and keyword param supplied

Reported by:
Jonathan Guthrie
Date:
05 Jun, 2012
Priority:
major
Component:
Lasso 9
Version:
9.2
Keywords:
Platform:
[http://www.lassosoft.com/ref9admin/?type=m&id=2351 http://www.lassosoft.com/lassoDocs/languageReference/obj/string/compareCodePointOrder]

'Quick rhino'->CompareCodePointOrder('QUICK RHINO', -case)
An unhandled failure during a web request
Error Code: -9948
Error Msg: Definition Not Found: string->compareCodePointOrder(string, -case=boolean)
Candidates were: string->compareCodePointOrder(find::string, offset::integer =?, length::integer =?, patOffset::integer =?, patLength::integer =?, -case::boolean =?)

'Quick rhino'->CompareCodePointOrder('QUICK RHINO')
0 //Should be True

Comments

22 Aug, 2013 by Eric Knibbe
It seems that if a method signature has optional and keyword parameters, calling the method fails if a keyword parameter is specified but an optional parameter is omitted.

define person(name::string, prefix::string="Mr.", -useprefix::boolean=false) => {
return (#useprefix ? #prefix + " ") + #name
}
person("Jenkins") // Jenkins
person("Jenkins", -useprefix) // failure
person("Jenkins", "Mrs.") // Jenkins
person("Jenkins", "Mrs.", -useprefix) // Mrs. Jenkins
22 Aug, 2013 by Eric Knibbe
May be related to #7449.
29 May, 2014 by Paul Higgins
Still exists.
01 Apr, 2015 by Rachel Guthrie
Please retest under 9.3 and update the target to next 9.3
thanks
04 Sep, 2015 by Eric Knibbe
Still exists, may be related to #7349.
29 Dec, 2016 by Eric Knibbe
In [changeset:"5735"]:
#!CommitTicketReference repository="" revision="5735"
fix failure when optional params omitted but kwparams supplied for member methods, refs #7408
Please log in to your LassoSoft account to comment

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft