# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #82790]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=82790 >
there is at least a little code smell inherent in p6 dynamic
variables, since these are
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #82810]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=82810 >
rakudo: sub foo(@a is copy) { @a ||= -1, -1, +1, +1; say @a };
foo([1,2,3,4]); say "ali
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #82812]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=82812 >
rakudo: my @a; @a ||= -1, -1, +1, +1; say @a.perl
rakudo 188755: OUTPUT«[-1]»
is ||=
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #82814]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=82814 >
rakudo: class A { method new { self.bless(*) } }; class B is A
{ has $.c is rw; method