Mar 09
Justin Dennis Boolean onComapre of Type
Mar 09, 2014; 13:19
Justin Dennis
Boolean onComapre of Type
Hi -
I have a type on which I want to be able to perform something like this:
#mytypeinstance ? 'true' | 'false'
in the type, I've tried defining an oncompare() method to no avail:
public oncompare(rhs) => .'booleandata' ? 0 | -1
But it seems oncompare does not get called in the syntax example above.
Even the following always evaluates to true:
public oncompare(rhs) => -1
For now, I've settled on using the data directly as:
#mytypeinstance->booleandata ? 'true' | 'false'
....but I was hoping to simplify that down to the above syntax. Is there a
different callback method I should be using other than oncompare()? Have I
mangled the syntax?
Thanks for your time and assistance.
- Justin
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Mar 09
Brad Lindsay Re: Boolean onComapre of Type
Mar 09, 2014; 15:32
Brad Lindsay
Re: Boolean onComapre of Type
Mar 09
Justin Dennis Re: Boolean onComapre of Type
Mar 09, 2014; 20:03
Justin Dennis
Re: Boolean onComapre of Type