What's the intent of "anon proto"/"anon multi"?

2015-06-30 Thread yary
Rakudo (both "star 201503" & rakudo-moar 7b5256) complains about "anon multi", saying "Cannot use 'anon' with individual multi candidates. Please declare an anon-scoped proto instead" in response to "anon multi foo (Int $x) { $x + 1 };" Given that message, I created an "anon proto foo" and assigne

Re: Types for Perl 6: request for comments

2015-06-30 Thread yary
Section 3.2's example does not fail for the given reason "This tries to access the c instance variable of the argument $b thus yielding a run-time error" - instead Perl6 more correctly complains that it was expecting a ColPoint, but got a Point instead. Indeed one cannot generally replace a subtype

Re: Types for Perl 6: request for comments

2015-06-30 Thread yary
Now that I've read ahead to 3.4, the "multi method solution" shown can be a little simpler, just need to add "multi" to the original "equal" methods, see attached. -y On Tue, Jun 30, 2015 at 4:16 PM, yary wrote: > Section 3.2's example does not fail for the given reason "This tries to > access

Announce: Rakudo Star Release 2015.06

2015-06-30 Thread Tobias Leich
# A useful, usable, "early adopter" distribution of Perl 6 On behalf of the Rakudo and Perl 6 development teams, I'm happy to announce the June 2015 release of "Rakudo Star", a useful and usable distribution of Perl 6. The tarball for the June 2015 release is available from