# 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
# 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?
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
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>
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
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
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
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
# 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 =
# 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
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
11 matches
Mail list logo