Re: This seems to be wrong
[email protected] (Brandon Allbery) Sun, 18 Sep 2016 18:30:47 -0400
| Newsgroups | perl.perl6.language |
|---|---|
| Message-ID | <CAKFCL4Vdb8WOncJigAateqwGVb1ar_1vMNUdSbcHEjzyJiAr1w@mail.gmail.com> |
On Sun, Sep 18, 2016 at 6:29 PM, Trey Harris <[email protected]> wrote: > But I see there’s a multi method Str defined on Any, and you can’t do > @inputs.map( .Str ), either (Use of uninitialized value $_ of type Any in > string context). Why not? (There’s no multi method Num on Any, even > though the docs about Cool <https://docs.perl6.org/type/Cool> > > seem to imply there should be…) > > Same reason I had to wrap it in a Block --- it's not recognizing .Str as a closure, it's running it immediately. Perhaps you wanted *.Str? -- brandon s allbery kf8nh sine nomine associates [email protected] [email protected] unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net