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
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]
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
On Fri Mar 25 14:00:30 2011, masak wrote:
> rakudo: my @foo := 1..3, @foo; .say for @foo[^10]
> rakudo 792e86: OUTPUT«1231231231»
> 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
# 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«1231231