[perl #122992] [BUG] Declaring a 'my' array or hash typed with a type parameter ends up blowing up with a fixable error message about instantiating generics in Rakudo

2014-10-16 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #122992] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=122992 > camelia was having some indigestion in the below backlog, which is why I'm reporting some

[perl #122991] [TODO] Implement 'handles' for 'my'-scoped (class) variables in classes

2014-10-16 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #122991] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=122991 > m: class A { my @.foo handles }; A.push("OH", "HAI"); say A.foo rakudo-moar a6f181: OU

[perl #99658] sequence operator '...' timeout

2014-10-16 Thread Carl Mäsak via RT
bartolin (>): > Actually I don't think S03 says that '1,3,5 ... 8' should act as > '1,3,5 ... *' > > As I understand it '1,3,5 ... 8' gives an infinite list with all even > numbers. '1,3,5 ... *' also gives an infinite list with all even > numbers -- but this one is lazy. > > So there is a differ

[perl #118581] [BUG] Segfault for a signature match with a native type and an 'as' cast in Rakudo

2014-10-16 Thread Carl Mäsak via RT
Resolving this ticket because Rakudo no longer segfaults. See [perl #122990] for the unexpected behavior it revealed underneath.

[perl #122990] [BUG] Matching an integer capture against a signature with a native integer coercing to Str fails (when it should succeed) in Rakudo

2014-10-16 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #122990] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=122990 > I'm about to close https://rt.perl.org/Ticket/Display.html?id=118581 (because it no long

[perl #118067] [BUG] Null PMC access when calling .new on a subclass with a proto overriding the regular .new in Rakudo

2014-10-16 Thread Carl Mäsak via RT
On Thu Oct 16 00:10:27 2014, barto...@gmx.de wrote: > Just an update: There is no longer a Null PMC access error, but Rakudo > complains about no matching signature: > > $ perl6-m -e 'class A is Any { proto method new($) {*} }; A.new(now)' > Cannot call 'new'; none of these signatures match: > i

[perl #122983] [BUG] spurt busted in Rakudo

2014-10-16 Thread Carl Mäsak via RT
Ah, yes. Rebuilding enough things, it works now. FROGGS (>): > I almost want to tag the bug as invalid :o) Done.

[perl #118755] [BUG] .grep 'is rw' but .first isn't in Rakudo

2014-10-16 Thread Christian Bartolomaeus via RT
This works now: $ perl6-m -e 'my @a = 1..10; @a.first(* %% 2).++; say @a' 1 3 3 4 5 6 7 8 9 10 I added a test for this (and for the example with grep) to S32-list/first.t and S32-list/grep.t, respectively, with the following commit: https://github.com/perl6/roast/commit/4295bfcfae

[perl #119215] [BUG] empty-list adverb on literal hash yields LTA, too-internal error message in Rakudo

2014-10-16 Thread Christian Bartolomaeus via RT
The error message is no longer too internal, but is it adequate enough? $ perl6-m -e '{}:<>' ## identical error with perl6-p ===SORRY!=== This type does not support positional operations $ perl6-j -e '{}:<>' ===SORRY!=== java.lang.RuntimeException: This type does not support positional operat

[perl #75858] [BUG] Can't use a where clause on an attribute without surrounding name and where clause in parentheses in Rakudo

2014-10-16 Thread Christian Bartolomaeus via RT
All of the above parses now (on Moar, Parrot and JVM): $ perl6 -e 'class A { has ($.x where 1) }; say "alive"' alive $ perl6 -e 'class A { has $.x where 1 }; say "alive"' alive $ perl6-m -e 'class A { has $x where 1; }; say "alive"' alive $ perl6 -e 'class A { has Int $.color where 1|2; }; say

[perl #118875] [BUG] 'where' clause followed by (non-parenthesized) expression with '&&' in it doesn't parse in parameter list in Rakudo

2014-10-16 Thread Christian Bartolomaeus via RT
This parses now (on Moar, Parrot and JVM): $ perl6 -e 'sub ndr($r where ($r ||= 10) > 0 && 1) { }; say "alive"' alive I added a test to S06-other/misc.t with the following commit: https://github.com/perl6/roast/commit/aeed867f01 and I'm closing the ticket.

[perl #119061] .push and .unshift do not do typechecks

2014-10-16 Thread Christian Bartolomaeus via RT
Since this works now I've added 3 tests to S09-typed-arrays/arrays.t with the following commit: https://github.com/perl6/roast/commit/ece637835e For the last example ("my Int @a=;") there was already a test (written for ticket 114968). I'm closing this ticket now.

[perl #118581] [BUG] Segfault for a signature match with a native type and an 'as' cast in Rakudo

2014-10-16 Thread Christian Bartolomaeus via RT
This no longer segfaults but gives False (on Moar, Parrot and JVM): $ perl6 -e 'say \(1) ~~ :(int $x as Str)' False Is that smart match supposed to return True? (For the tests it would be nice to check for the correct result and not only whether it lives_ok.)

[perl #118067] [BUG] Null PMC access when calling .new on a subclass with a proto overriding the regular .new in Rakudo

2014-10-16 Thread Christian Bartolomaeus via RT
Just an update: There is no longer a Null PMC access error, but Rakudo complains about no matching signature: $ perl6-m -e 'class A is Any { proto method new($) {*} }; A.new(now)' Cannot call 'new'; none of these signatures match: in block at -e:1 $ perl6-p -e 'class A is Any { proto method n

[perl #118231] Importing the same thing twice shouldn't bomb

2014-10-16 Thread Christian Bartolomaeus via RT
Since it's now possible to import the same thing twice, I added a test to S11-modules/import.t with the following commit: https://github.com/perl6/roast/commit/02a309ec81 and I'm closing the ticket.