[perl #131302] [LTA] Seq:D ~~ Seq:D uses Any.ACCEPTS

2017-05-12 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131302] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131302 > Lists have their own .ACCEPTS that does the check based on elements. You can smartmatch a

[perl #131301] [SEGV] segfault when nqp::nextfiledir'ing a closed dir handle

2017-05-12 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131301] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131301 > Doesn't affect Perl 6-level code, but perhaps a SEGV is too bad and should be fixed?

[perl #131290] is default() doesn't work on attributes

2017-05-12 Thread Brad Gilbert via RT
On Fri, 12 May 2017 03:04:46 -0700, elizabeth wrote: > m: class A { has Int $.a is default(42) }; dd A.new.a > # expected to see 42 there, not Int, so feels like "is default" on > attrs isn't implemented? It does work if you add =Nil class A { has Int $.a is rw is default(42) = Nil

Re: Parse a string into a regex?

2017-05-12 Thread Lloyd Fournier
Patrick's answer of <$regex-interpolation> is the one I'd use. Although it checks a few possibly malicious things it doesn't catch everything: https://rt.perl.org/Public/Bug/Display.html?id=131079 On Fri, May 12, 2017 at 5:11 PM Andreas Mueller < andreas.muel...@biologie.uni-osnabrueck.de>

Re: [perl #131300] [BUG] MoarVM panic if you check for membership in undefined Set

2017-05-12 Thread Elizabeth Mattijsen via RT
Fixed for (elem) and (cont) with https://github.com/rakudo/rakudo/commit/ba0581d75b . Tests needed. > On 12 May 2017, at 21:22, Zoffix Znet via RT > wrote: > > On Fri, 12 May 2017 12:07:11 -0700, c...@tilmes.org wrote: >> m: say 1 ∈ (Set) ?? 'present' !! 'not

Re: [perl #131300] [BUG] MoarVM panic if you check for membership in undefined Set

2017-05-12 Thread Elizabeth Mattijsen
Fixed for (elem) and (cont) with https://github.com/rakudo/rakudo/commit/ba0581d75b . Tests needed. > On 12 May 2017, at 21:22, Zoffix Znet via RT > wrote: > > On Fri, 12 May 2017 12:07:11 -0700, c...@tilmes.org wrote: >> m: say 1 ∈ (Set) ?? 'present' !! 'not

[perl #131300] [BUG] MoarVM panic if you check for membership in undefined Set

2017-05-12 Thread Zoffix Znet via RT
On Fri, 12 May 2017 12:07:11 -0700, c...@tilmes.org wrote: > m: say 1 ∈ (Set) ?? 'present' !! 'not present'; > rakudo-moar dc5eec: OUTPUT: «MoarVM panic: Memory allocation failed; could > not allocate 83968 bytes␤» To add from https://irclog.perlgeek.de/perl6/2017-05-12#i_14573414 19:16

[perl #131300] [BUG] MoarVM panic if you check for membership in undefined Set

2017-05-12 Thread Zoffix Znet via RT
On Fri, 12 May 2017 12:07:11 -0700, c...@tilmes.org wrote: > m: say 1 ∈ (Set) ?? 'present' !! 'not present'; > rakudo-moar dc5eec: OUTPUT: «MoarVM panic: Memory allocation failed; could > not allocate 83968 bytes␤» To add from https://irclog.perlgeek.de/perl6/2017-05-12#i_14573414 19:16

[perl #131297] [PERF][REGEX] `|@a` is apparently-equivalent to just `@a` but is 70x slower

2017-05-12 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131297] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131297 > https://irclog.perlgeek.de/perl6-dev/2017-05-12#i_14572067 14:49 m: my @a =

[perl #131290] is default() doesn't work on attributes

2017-05-12 Thread via RT
# New Ticket Created by Elizabeth Mattijsen # Please include the string: [perl #131290] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131290 > m: class A { has Int $.a is default(42) }; dd A.new.a # expected to

Re: Parse a string into a regex?

2017-05-12 Thread Andreas Mueller
IMHO it is a security and speed issu I switched it of with a pragma like this: use MONKEY-SEE-NO-EVAL; my $match = EVAL "/$m/"; if $test_string ~~ $match { say 'yea' } Andreas On 11.05.17 10:32, Sean McAfee wrote: > I've been searching for how to parse a string into a