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

unpacking example can not run #3545

Closed
p6rt opened this issue Oct 6, 2014 · 4 comments
Closed

unpacking example can not run #3545

p6rt opened this issue Oct 6, 2014 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Oct 6, 2014

Migrated from rt.perl.org#122917 (status was 'resolved')

Searchable as RT122917$

@p6rt
Copy link
Author

p6rt commented Oct 6, 2014

From songwentai@linuxdeepin.com

UsingPerl6-draft.pdf
page 47
4.8 Unpacking

code​:
sub first-is-largest(@​a){
  my :($first, *@​rest ) := \(|@​a)
  return $first >= all(@​rest);
}

can not run ,error message​:
===SORRY!=== Error while compiling unpacking.p6
Malformed my
at unpacking.p6​:4
------> my â��​:($first, *@​rest ) := \(|@​a)
  expecting any of​:
  scoped declarator

perl6 --version
This is perl6 version 2014.09 built on MoarVM version 2014.09

@p6rt
Copy link
Author

p6rt commented Dec 18, 2014

From @usev6

On Mon Oct 06 01​:35​:47 2014, songwentai@​linuxdeepin.com wrote​:

UsingPerl6-draft.pdf
page 47
4.8 Unpacking

code​:
sub first-is-largest(@​a){
my :($first, *@​rest ) := \(|@​a)
return $first >= all(@​rest);
}

can not run ,error message​:
===SORRY!=== Error while compiling unpacking.p6
Malformed my
at unpacking.p6​:4
------> my â��​:($first, *@​rest ) := \(|@​a)
expecting any of​:
scoped declarator

perl6 --version
This is perl6 version 2014.09 built on MoarVM version 2014.09

This is fixed now​: Raku/book@c27d240

Tanks for reporting!

@p6rt
Copy link
Author

p6rt commented Dec 18, 2014

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Dec 18, 2014

@usev6 - Status changed from 'open' to 'resolved'

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

No branches or pull requests

1 participant