Retrieving all input params

1 view
Skip to first unread message

Jolle Carlestam

unread,
Mar 25, 2012, 10:25:03 PM3/25/12
to <lasso@lists.lassosoft.com> Talk
In a method I can get unnamed params using ellipse and #rest.
Is there a call that would give me all the params used in the method and their values?

In my dreams:
define mymethod(usehtis::boolean, maybethis::string = 'I might') => {
return #params
}
mymethod(false, 'Or not')

-> staticArray((usehtis = false), (maybethis = Or not))

The above is, by the way, not working.


HDB
Jolle
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
La...@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-un...@lists.lassosoft.com>
Send administrative queries to <Lasso-...@lists.lassosoft.com>

Ke Carlton

unread,
Mar 26, 2012, 4:56:46 AM3/26/12
to la...@lists.lassosoft.com
One obvious approach would be to use -named params — that could be handled
easily enough (but I suspect is not what you're looking for).

Following on from Jolle's request, is there a way we can access the current
signature for the current method? (that would effectively enable a
solution).

ie.

define mymethod(usehtis::boolean, maybethis::string = 'I might') => {

currentcapture->signature // or just: currentsignature
}

Ke

Reply all
Reply to author
Forward
0 new messages