On Apr 21, 2008, at 9:39 , John M. Dlugosz wrote:

TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote:
I think the type is just :( $: :named$ ) if you want to extract the invocant with a $ prefix. Otherwise it would be :( $, :named $ ) and you
extract the item positionally with prefix @ or .[].
I don't want to have to "extract" it.  I want to be able to say

     $x = foo

and get the single value return from foo, and only dress it up if I want the optional secondary returns

     my ($x, :$named) = foo;   # or something like that

That looks to me like a form of positional extraction. (Of course, my hit rate on p6 stuff has been remarkably low of late...)

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university    KF8NH


Reply via email to