Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

binding code snippet example not working #168

Open
sztanyi opened this issue Feb 25, 2018 · 1 comment
Open

binding code snippet example not working #168

sztanyi opened this issue Feb 25, 2018 · 1 comment

Comments

@sztanyi
Copy link

sztanyi commented Feb 25, 2018

Following code in section 3.7. Assignment vs. Binding seems not working
my $a; my $b; $b := $a; $a = 7; say $b; $b = 8; say $a;

i got the following error message:
`

my $a
(Any)
my $b
(Any)
$b := $a;
===SORRY!=== Error while compiling:
Cannot use bind operator with this left-hand side
------> $b := $a;`

@sztanyi sztanyi changed the title binding binding code snippet example not working Feb 25, 2018
@zoffixznet
Copy link
Contributor

Thanks. This looks to be a REPL bug. I filed it in Rakudo as rakudo/rakudo#1565

The code from the example should work fine if you save it into a file and run perl6 the-file.p6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants