[perl #87034] [BUG] Either binding an array to a list containing the array itself should work consistently or not at all in Rakudo

2017-12-13 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
By the way, there is a pull request: https://github.com/rakudo/rakudo/pull/1020 But the work on it is kinda stalled. On 2017-02-17 04:22:51, alex.jakime...@gmail.com wrote: > Reopened for now. > > See RT #121807 and RT #125371 for more info. Basically, there will be > no error > after I'm done wi

[perl #87034] [BUG] Either binding an array to a list containing the array itself should work consistently or not at all in Rakudo

2015-11-10 Thread Christian Bartolomaeus via RT
Since Rakudo commit 3754356d8e this fails with X::Syntax::Variable::Initializer: $ perl6-m -e 'my @foo := 1..3, @foo; .say for @foo[^10]' ===SORRY!=== Error while compiling -e Cannot use variable @foo in declaration to initialize itself at -e:1 --> my @foo := 1..3, @⏏foo; .say for @foo[^10]

[perl #87034] [BUG] Either binding an array to a list containing the array itself should work consistently or not at all in Rakudo

2011-03-25 Thread Carl Mäsak via RT
eagerly (without {} blocks) self-referential binding will never work because all occurrences of @fib in the RHS will be resolved to the old container, which is discarded by the binding eagerly self-referential *assignment* may work in some cases rakudo: my @selfref := 1, 2, 3, @selfref; .say f

[perl #87034] [BUG] Either binding an array to a list containing the array itself should work consistently or not at all in Rakudo

2011-03-25 Thread Carl Mäsak via RT
On Fri Mar 25 14:00:30 2011, masak wrote: > rakudo: my @foo := 1..3, @foo; .say for @foo[^10] > rakudo 792e86: OUTPUT«1␤2␤3␤1␤2␤3␤1␤2␤3␤1␤» > this is what I expect. > sorear: explain what you mean by the second thing? > rakudo: my @foo := 1..3, (@foo Z+ 100); .say for @foo[^10] > rakudo 792e8

[perl #87034] [BUG] Either binding an array to a list containing the array itself should work consistently or not at all in Rakudo

2011-03-25 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #87034] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=87034 > rakudo: my @foo := 1..3, @foo; .say for @foo[^10] rakudo 792e86: OUTPUT«1␤2␤3␤1␤2␤3␤1␤