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

Re: Sub args: choose one of two?

2015-06-30 Thread Patrick R. Michaud
On Sat, Jun 27, 2015 at 05:39:32PM -0500, Tom Browder wrote: > I'm trying to take advantage of the MAIN suroutine to handle most all of my > routine command line arg handling. One idiom I use a lot is for the user > to choose only one of two args, but one must be chosen. Perhaps you want that the

[perl #123969] NullPointerException on jvm for same CStruct in CStruct

2015-06-30 Thread Christian Bartolomaeus via RT
On Mon Jun 29 14:21:31 2015, barto...@gmx.de wrote: > Unfortunatly, another NullPointerException surfaces when looking at > the newly created $a: > > $ perl6-j -e 'class Foo is repr { has int32 $.idontcare; has > Foo $.bar }; my $a = Foo.new; say $a.bar' > java.lang.NullPointerException > in blo

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

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

[perl #125520] Hitting tab after a non-identifier character clears the line in REPL

2015-06-30 Thread via RT
# New Ticket Created by Sam S. # Please include the string: [perl #125520] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125520 > In the REPL (with Linenoise installed), Tab completion works when invoked after a partially ty

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

[perl #125518] NQPRoutine sneaking into Perl 6 land through the Grammar class

2015-06-30 Thread via RT
# New Ticket Created by Sam S. # Please include the string: [perl #125518] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125518 > Some of the methods of the Grammar class (such as FAILGOAL and !cursor_pos) are exposed to Per

[perl #123769] [BUG] Binding to access of typed array doesn't type check

2015-06-30 Thread Christian Bartolomaeus via RT
I just linked this ticket from https://rt.perl.org/Ticket/Display.html?id=81682, which is now closed but pointed to a similiar problem: $ perl6-m -e 'my Int @a = 1, 2, 3; my Str $x = "foo"; @a[0] := $x; say @a[0];' foo It would be nice, if both variants (binding to a string directly and binding

[perl #81682] Mis-matched types and Binding Containers - 2010.12 bug?

2015-06-30 Thread Christian Bartolomaeus via RT
On Tue Nov 20 12:16:04 2012, FROGGS.de wrote: > looks good today: > > r: my Int @a = 1, 2, 3; my Str $x = "foo"; @a[0] := $x; say @a[0]; > rakudo bf472b: OUTPUT«foo␤» > > r: my Int @a = 1, 2, 3; my Int $x = 5; @a[0] := $x; say @a[0]; > rakudo bf472b: OUTPUT«5␤» > > r: my Int @a = 1, 2, 3; m

[perl #125513] [BUG] Bogus error when putting the named slurpy *%_ before the positional slurpy *@_ in Rakudo

2015-06-30 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #125513] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=125513 > m: class C { method foo(*%_, *@_) { say "OH HAI" } }; C.new.foo rakudo-moar 7b5256: OUT

[perl #125257] "await" without args does nothing but produces no error

2015-06-30 Thread Christian Bartolomaeus via RT
I added a simple test (only testing whether bare "await" dies, no check for the error message) to S17-promise/basic.t with commit https://github.com/perl6/roast/commit/305ca31ff7 I'm closing this ticket as 'resolved'.