Re: subset problem

2016-09-30 Thread mimosinnet
El Saturday, 17 de September del 2016 a les 10:21, MT va escriure: Btw the following has the same problem; > my Hash $h = {a=>1,b=>2} {a => 1, b => 2} > $h:exists True > subset mh of Str where $h{$_}:exists (mh) > my mh $x = 'b' Type check failed in assignment to $x; expected mh but got Str

Re: What are variables/parameters that start with a pipe | char

2016-09-30 Thread Brandon Allbery
On Fri, Sep 30, 2016 at 10:22 PM, Francis (Grizzly) Smit wrote: > I keep finding stuff like this: > > multi method spurt(IO::Path:D: Blob $contents, :$bin, |c)multi method > spurt(IO::Path:D: Cool $contents, :$bin, |c) > > > but I cannot find the |c syntax in the docs I

Re: What are variables/parameters that start with a pipe | char

2016-09-30 Thread Francis (Grizzly) Smit
On 01/10/16 12:22, Francis (Grizzly) Smit wrote: I keep finding stuff like this: multi method spurt(IO::Path:D: Blob $contents, :$bin, |c) multi method spurt(IO::Path:D: Cool $contents, :$bin, |c) but I cannot find the |c syntax in the docs I have googled but no good a pointer or

What are variables/parameters that start with a pipe | char

2016-09-30 Thread Francis (Grizzly) Smit
I keep finding stuff like this: multi method spurt(IO::Path:D: Blob $contents, :$bin, |c) multi method spurt(IO::Path:D: Cool $contents, :$bin, |c) but I cannot find the |c syntax in the docs I have googled but no good a pointer or link would be good. -- .~. In my life God

Re: What are variables/parameters that start with a pipe | char

2016-09-30 Thread Francis (Grizzly) Smit
On 01/10/16 12:27, Brandon Allbery wrote: On Fri, Sep 30, 2016 at 10:22 PM, Francis (Grizzly) Smit > wrote: I keep finding stuff like this: multi method spurt(IO::Path:D: Blob $contents, :$bin, |c) multi method

[perl #129772] [LTA] error message when using int parameters as subs

2016-09-30 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #129772] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129772 > If you accidentally use an `int` variable as a Callable, you get a helpful error:

[perl #129768] [BUG] Wrong error message when (disallowed) positional slurpy with a default is preceded by named in Rakudo

2016-09-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #129768] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129768 > Hello :) So, wondering if anyone might know - in a parameter signature, if you have a