Lasso Soft Inc. > Home

LassoTalk


options
From: To: Select a List: Reset
From:Trevor Borgmeier
Date:Sun, February 19 2012 @02:04 AM

Any reason not to add this into LP9 if not just in the compat layer so
it will work with LP8.x syntax?

define regexp->input(input::string)=>{.input=#input}

Currently LP8 uses this:
$_card->input($card);

and LP9 uses this:
$_card->input=$card;

neither accepts the others.

-Trevor



on 1/10/12 3:25 PM Trevor Borgmeier wrote:
> Thanks, that's good to know -- In the LP8 it could be passed as a
> parameter...
>
> $regex->input('12345');
>
> rather than $regex->input = '12345';
>
> perhaps the assignment method works in both? Haven't tried... Anyway
> something to consider for backwards compatibility.
>
> -Trevor
>
>
>
> on 1/10/12 2:56 PM Kyle Jessup wrote:
>> On Jan 10, 2012, at 3:33 PM, Trevor Borgmeier wrote:
>>
>>> It appears that in LP9 the option to replace the input string has
>>> been lost...
>>>
>>> regexp->input(string) returns an error...
>>>
>>> This works in LP8, but will fail in LP9
>>>
>>> var('test_regex' = regexp(-find='^[0-9]{3,5}$'));
>>> $test_regex->input('12345');
>>> $test_regex->find;
>>>
>>> LP9 returns this error....
>>>
>>> An unhandled failure during a web request
>>> Error Code: -9948
>>> Error Msg: Definition Not Found: regexp->input(string) Candidates
>>> were: regexp->input()
>>>
>>> --
>>>
>>> I can use this code in LP9:
>>>
>>> var('test_regex' = regexp(-find='^[0-9]{3,5}$', -input('12345'));
>>> $test_regex->find;
>>>
>>> It appears I just can't swap out the input value to test against the
>>> same regexp as i can in LP8.5
>> I'm not sure about the 8 behavior, but in 9 I know you can just
>> assign the input.
>>
>> #test_regexp->input = '12345'
>>
>> -Kyle
>>
>>> -Trevor
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> Lasso@lists.lassosoft.com
>> To unsubscribe, E-mail to:<Lasso-unsubscribe@lists.lassosoft.com>
>> Send administrative queries to<Lasso-request@lists.lassosoft.com>
>>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> Lasso@lists.lassosoft.com
> To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
> Send administrative queries to <Lasso-request@lists.lassosoft.com>
>
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>

regexp->input(string) in LP9? [backwards compatibility bug?]

It appears that in LP9 the option to replace the input string has been lost... regexp->input(string) returns an error... This works in LP8, but will fail in LP9 var('test_regex' = regexp(-f...
by Trevor Borgmeier on 2012-01-10 14:33:22

Re: regexp->input(string) in LP9? [backwards compatibility bug?]

On Jan 10, 2012, at 3:33 PM, Trevor Borgmeier wrote: > It appears that in LP9 the option to replace the input string has been lost... > > regexp->input(string) returns an error... > > This wo...
by Kyle Jessup on 2012-01-10 15:56:34

Re: regexp->input(string) in LP9? [backwards compatibility bug?]

Thanks, that's good to know -- In the LP8 it could be passed as a parameter... $regex->input('12345'); rather than $regex->input = '12345'; perhaps the assignment method works in both? Have...
by Trevor Borgmeier on 2012-01-10 15:25:45

Re: regexp->input(string) in LP9? [backwards compatibility bug?]

Any reason not to add this into LP9 if not just in the compat layer so it will work with LP8.x syntax? define regexp->input(input::string)=>{.input=#input} Currently LP8 uses this: $_card->in...
by Trevor Borgmeier on 2012-02-19 02:04:05

To find out more about this list or how to subscribe - choose the 'i' next to the list name on the right, or click here for more information about LassoTalk

LassoSoft Inc. > Home