[perl #116595] [BUG] Nesting wrapping roles bind 'callsame' to the wrong recipient in Rakudo

2018-06-21 Thread Will Coleda via RT
On Wed, 30 Jan 2013 07:17:38 -0800, masak wrote: > rn: role F[$n] { method x { callsame; callsame until $.v % $n } > }; class S { has $.v is rw = 1; method x { ++$.v } }; my $s = S.new; for > ^3 { $s.x; say $s.v; $s = $s but F[$s.v] } > niecza v24-18-gaf64300: OUTPUT«2␤3␤5␤» > ..rakudo

[perl #116595] [BUG] Nesting wrapping roles bind 'callsame' to the wrong recipient in Rakudo

2018-06-21 Thread Will Coleda via RT
On Wed, 30 Jan 2013 07:17:38 -0800, masak wrote: > rn: role F[$n] { method x { callsame; callsame until $.v % $n } > }; class S { has $.v is rw = 1; method x { ++$.v } }; my $s = S.new; for > ^3 { $s.x; say $s.v; $s = $s but F[$s.v] } > niecza v24-18-gaf64300: OUTPUT«2␤3␤5␤» > ..rakudo

[perl #116595] [BUG] Nesting wrapping roles bind 'callsame' to the wrong recipient in Rakudo

2013-01-30 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #116595] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=116595 masak hm, not sure I can golf this significantly. masak does the following

[perl #116595] [BUG] Nesting wrapping roles bind 'callsame' to the wrong recipient in Rakudo

2013-01-30 Thread Carl Mäsak via RT
masak rn: role F[$n] { method x { callsame; callsame until $.v % $n } }; class S { has $.v is rw = 1; method x { ++$.v } }; my $s = S.new; for ^3 { $s.x; say $s.v; $s = $s but F[$s.v] } p6eval niecza v24-18-gaf64300: OUTPUT«2␤3␤5␤» p6eval ..rakudo b3fc32: OUTPUT«(timeout)2␤3␤» masak jnthn: this