[perl #85844] "sub foo;" tries to call foo instead of giving parse error

2011-10-08 Thread Will Coleda via RT
On Thu Mar 10 07:23:08 2011, pawel.pab...@implix.com wrote: > [16:12] rakudo: sub foo; # looks bad, this should be parse > error, not > attempt to call foo. > [16:12] rakudo a38d45: OUTPUT«Could not find sub &foo␤ in > main > program body at line 22:/tmp/c10WrR9Dod␤» Fixed: 17:22 < [Coke]> rak

[perl #77158] [BUG] Doing .perl on an :(Array of Int) signature produces an internal error in Rakudo

2011-10-08 Thread Will Coleda via RT
On Wed Aug 11 06:13:02 2010, masak wrote: > rakudo: say :(Int).perl > rakudo fcf4f3: OUTPUT«:(Int )␤» > rakudo: say :(Array of Int).perl > rakudo fcf4f3: OUTPUT«Method '!select' not found for invocant > of class '' [...] > dolmen: new bug? > masak: don't know. Just experimenting with Signatur

[perl #78280] [BUG] Null PMC access when assigning to a variable in a package that doesn't exist in Rakudo

2011-10-08 Thread Will Coleda via RT
On Thu Oct 07 14:46:24 2010, masak wrote: > rakudo: my $b; -> $_ is rw = $OUTER::_ { $_ = 5; $b = > {.say}}(); .say; $_ = 42; $b(); > rakudo 377615: OUTPUT�Null PMC access in getprop() [...] > * masak submits rakudobug for tylercurtis Null PMC access > rakudo: -> $_ is rw = $OUTER::_ { $_ = 5 }(

[perl #75648] [BUG] [WEIRD] Internal parser error when parsing 'my ::&a &a' in Rakudo

2011-10-08 Thread Will Coleda via RT
On Wed Jun 09 14:47:30 2010, masak wrote: > rakudo: my ::&a &a > rakudo a54677: OUTPUT«===SORRY!===␤ResizablePMCArray: Can't > pop from an empty array!␤» > :D > * masak submits rakudobug > that's a parser compiler problem, I'd guess > that error usually is. > std: my ::&a &a > std 31183: OUT

[perl #77168] typed list causes recursion limit hit

2011-10-08 Thread Will Coleda via RT
On Mon Jul 19 05:46:45 2010, salva wrote: > > $ ./perl6 -e 'my Int @a; push @a, 5; say @a[0]' > maximum recursion depth exceeded > in 'at_pos' at line 5:CORE.setting > in 'at_pos' at line 7:CORE.setting > in 'Any::postcircumfix:<[ ]>' at line 1624:CORE.setting > in 'at_pos' at line 5:CORE

[perl #78738] [BUG] Multiple dispatch on required named param makes 0-parm sub invisible

2011-10-08 Thread Will Coleda via RT
On Sun Oct 31 16:38:58 2010, util wrote: > On Rakudo Star 2010-10, this code works as expected, outputting "42\n" > : > multi sub Bar ( ) { return 42 }; > say Bar(); > This code should give the same output (and *does* on Pugs): > multi sub Bar ( ) { return 42 }; > multi sub B

[perl #78406] [BUG] Readonly error on *second iteration* in Rakudo!?

2011-10-08 Thread Will Coleda via RT
On Sat Oct 16 12:53:02 2010, masak wrote: > rakudo: for ^8 { say .fmt("%03b") } > rakudo 064702: OUTPUT«000␤001␤010␤011␤100␤101␤110␤111␤» > rakudo: for ^8 { .=fmt("%03b"); .say } > rakudo 064702: OUTPUT«000␤Cannot modify readonly value␤ in > '&infix:<=>' [...] > bug or not? why does it die on

[perl #78208] [BUG] Numifying a Method returns number of multi candidates in Rakudo

2011-10-08 Thread Will Coleda via RT
On Mon Oct 04 13:23:30 2010, masak wrote: > rakudo: say +Method > rakudo 2ee5db: OUTPUT«0␤» > that seems completely bogus to me > it prints out the contents of both > ...no warning? > * masak submits +Method rakudobug > rakudo: multi foo() { }; multi foo($x) { }; say +&foo > rakudo 2ee5db: O

[perl #78112] [BUG] Null PMC access when using placeholder parameter in rhs of attribute assignment in class declaration in Rakudo

2011-10-08 Thread Will Coleda via RT
On Mon Oct 04 04:13:15 2010, masak wrote: > John (>): > > std seems to complain that the placeholder variables are not valid here. > > Maybe we need more clarification on whether this should work or not. > > I'm fine with it being forbidden in this case. The ticket concerns the > presence of a Nu

[perl #77750] [BUG] Internal Parrot error when parsing '::' as a sole term in Rakudo

2011-10-08 Thread Will Coleda via RT
On Thu Sep 09 06:45:39 2010, masak wrote: > rakudo: say ::.^methods # > rakudo 859f2d: OUTPUT«===SORRY!===␤ResizablePMCArray: Can't > pop from an empty array!␤» > * masak submits rakudobug > interesting error. > rakudo: :: > rakudo 859f2d: OUTPUT«===SORRY!===␤ResizablePMCArray: Can't > pop fro

[perl #77754] [BUG] Null PMC access when calling .perl on callframe.my in Rakudo

2011-10-08 Thread Will Coleda via RT
On Thu Sep 09 09:02:22 2010, masak wrote: > rakudo: say callframe().callframe(1).my.perl > rakudo 859f2d: OUTPUT«Null PMC access in isa_pmc()␤ in > '&infix:<=>' at line 1␤ in 'CallFrame::my' at line 7047:CORE.setting > [...] > that isa_pmc NPA is new, I think > ie it worked when I implemented

[perl #77748] [BUG] The type object of a typed array stringifies to just '()' in Rakudo

2011-10-08 Thread Will Coleda via RT
On Thu Sep 09 05:32:08 2010, masak wrote: > rakudo: my @a of Int = (1,2,3); say @a.WHAT > rakudo 859f2d: OUTPUT«()␤» > huh > * masak submits rakudobug Fixed. 16:52 < [Coke]> rakudo: my @a of Int = (1,2,3); say @a.WHAT 16:52 <+p6eval> rakudo 88c5a5: OUTPUT«Array()␤» Closable with tests. -- W

[perl #78152] [PATCH] Remove rakudo build dependency on shell/backticks and allow smoother windows (g|mingw32-)make spectest_smolder

2011-10-08 Thread Will Coleda via RT
On Sat Oct 02 03:23:18 2010, moritz wrote: > Thanks for the patch, I've applied it. > > I'm leaving this ticket open for now, until we've decided what to do > about the documentation. Let's either add a Windows section to the main README, or a new README.win32. I will happily apply such a patch

[perl #77412] [PATCH] Fix sub hash() and improve Parcel.hash

2011-10-08 Thread Will Coleda via RT
On Tue Aug 24 05:26:24 2010, TiMBuS wrote: > This is just a followup fix to ticket #75584 that pmichaud was going to do > but probably forgot about. Previously Parcel's hash method was delegating to > sub hash (which is backwards). I flipped it around to fix it. Whoops! we seem to have missed th

[perl #79642] [BUG] When a hash isn't bound to an optional %-sigilled parameter, something weird ends up in it in Rakudo

2011-10-08 Thread Will Coleda via RT
On Mon Nov 22 16:06:07 2010, masak wrote: > rakudo: sub foo($a, %h?) { bar($a, %h) }; sub bar($a, %h?) { > say "alive!" }; foo(42) > rakudo : OUTPUT«Method 'HOW' not found for invocant of class > 'Hash'␤ in 'bar' at line 1 [...] > rakudo: sub foo($a, %h?) { say %h.WHAT }; foo(42) > rakudo : OU

[perl #77274] [BUG] Class cannot inherit first from parent and then from grandparent in Rakudo

2011-10-08 Thread Will Coleda via RT
On Tue Aug 17 06:22:55 2010, masak wrote: > rakudo: class A { method foo { say "OH HAI" } }; class B is A > {}; class C is A is B {}; say "alive"; C.new.*foo > rakudo 85602a: OUTPUT«===SORRY!===␤Could not build C3 > linearization: ambiguous hierarchy␤» > * masak submits rakudobug > it's a good d

[perl #77788] [BUG] Can't pass in several same-named named parameters to a sub

2011-10-08 Thread Will Coleda via RT
On Sat Sep 11 11:18:59 2010, masak wrote: > rakudo: sub foo(*%p) { say %p.perl }; foo(a => 'b', a => 'c') > rakudo a93dcb: OUTPUT�duplicate named argument in call [...] > * masak submits rakudobug > rakudo: sub foo(*%p) { say %p.perl }; my %h = a => 'b'; > foo(|%h, a => 'c') > rakudo a93dcb: OU

[perl #75632] [BUG] Null PMC access when assigning to the (questionably declared) variable $A::b in Rakudo

2011-10-08 Thread Will Coleda via RT
On Wed Jun 09 06:17:16 2010, masak wrote: > std: package A {}; my $A::b > std 31183: OUTPUT«ok 00:01 108m␤» > hm. > rakudo: package A {}; my $A::b = 5 > rakudo a54677: OUTPUT«Null PMC access in getprop() [...] > * masak submits rakudobug > rakudo: my $A::b = 5 > rakudo a54677: OUTPUT«Null PM

[perl #78056] compiling a script to PIR makes it lose its ability to handle command line arguments

2011-10-08 Thread Will Coleda via RT
On Sun Sep 26 08:05:13 2010, moritz wrote: > works fine directly: > > $ cat args.pl > say @*ARGS.perl; > say @*ARGS.join('|'); > $ ./perl6 args.pl foo bar 123 > ["foo", "bar", "123"] > foo|bar|123 > > # but beware of compilation: > $ ./perl6 --target=pir args.pl > args.pir > $ ./parrot_install/bi

[perl #76298] [BUG] 'has' declarations and method protos can't coexist peacefully in Rakudo

2011-10-08 Thread Will Coleda via RT
On Wed Jun 30 09:21:21 2010, masak wrote: > rakudo: class A { has $.b; proto method b {} } > rakudo 806efc: OUTPUT«===SORRY!===␤A method named 'b' already > exists in class 'A'. It may have been supplied by a role.␤» > cxreg: that's your error, right? > right > I don't think I've seen this ad

[perl #76584] Method list returned by .can() not stringifying

2011-10-08 Thread Will Coleda via RT
On Wed Sep 22 19:09:19 2010, ash_gti wrote: > $ perl6 > > class A { method a { 1 } }; A.can('a'); > ===SORRY!=== > get_string() not implemented in class 'P6Invocation' > > > It happens whenever you try to Stringify the result of .can, .can is > probably returning something primitive in parrot. F

[perl #77922] [BUG] Can't modify the elements of a Hash created with Hash.new in Rakudo

2011-10-08 Thread Will Coleda via RT
On Sun Sep 19 06:33:09 2010, masak wrote: > rakudo: my $x = Hash.new(a => 1); $x = 2; say $x.perl > rakudo ccde8d: OUTPUT«Cannot modify readonly value␤ in > '&infix:<=>' [...] > * masak submits rakudobug > this makes some perverted sense. > The implementation of hash initialization does indeed

[perl #73396] [BUG] Null PMC access when calling .WHAT on the thing that Perl6::Compiler.compile returns in Rakudo

2011-10-08 Thread Will Coleda via RT
Verified, closing ticket. -- Will "Coke" Coleda

[perl #74412] [BUG] Null PMC access when accessing a variable in a class package through its long name in Rakudo

2011-10-08 Thread Will Coleda via RT
On Fri Apr 16 01:26:52 2010, masak wrote: > alpha: class A { my $b; method c { $A::b = 5; say $A::b } }; > A.new.c > alpha 30e0ed: OUTPUT«5␤» > rakudo: class A { my $b; method c { $A::b = 5; say $A::b } }; > A.new.c > rakudo 78faa0: OUTPUT«Null PMC access in getprop() [...] > * masak submits ra

[perl #76400] [BUG] Null PMC access when doing 'say $foo::' (which shouldn't even parse) in Rakudo

2011-10-08 Thread Will Coleda via RT
On Tue Jul 06 09:19:10 2010, masak wrote: > std 31559: OUTPUT«ok 00:01 111m␤» > I didn't expect that to work :) > std bug. > * TimToady bug > I'm not entirely sure how it parsed... > oh, morename allows a final :: component, but that's not > quite what you want here > std: $defeat-the-name-ch

[perl #73396] [BUG] Null PMC access when calling .WHAT on the thing that Perl6::Compiler.compile returns in Rakudo

2011-10-08 Thread Will Coleda via RT
On Sun Mar 07 08:07:49 2010, masak wrote: > rakudo: say Perl6::Compiler.compile('say 42').WHAT > rakudo e9c185: OUTPUT�Null PMC access in find_method('WHAT') [...] > * masak submits rakudobug > rakudo: Perl6::Compiler.compile('say 42').WHAT > rakudo e9c185: OUTPUT�Null PMC access in find_metho

[perl #73992] [BUG] Null PMC access when assigning to a lexical in a CHECK or an INIT phaser block in Rakudo

2011-10-08 Thread Will Coleda via RT
On Fri Apr 02 04:49:04 2010, masak wrote: > rakudo: my $a; CHECK { $a = 42 } > rakudo 63ff06: OUTPUT�Null PMC access in getprop() [...] > rakudo: my $a; INIT { $a = 42 } > rakudo 63ff06: OUTPUT�Null PMC access in getprop() [...] > * masak submits rakudobug Current behavior: 15:57 < [Coke]> ra

[perl #74016] [BUG] Internal Parrot error when using Associative or Positional instances for element access in Rakudo

2011-10-08 Thread Will Coleda via RT
On Fri Apr 02 17:27:56 2010, masak wrote: > rakudo: say Associative.new{'x'} > rakudo 3469ff: OUTPUT�get_pmc_keyed() not implemented in > class '' [...] > :) > * masak submits rakudobug > so, role is good for the vanilla implementation, to allow people > to not be stupid. > rakudo: say Positio

[perl #69991] Exceptions from io.pir not being properly thrown

2011-10-08 Thread Will Coleda via RT
chdir still isn't throwing a CATCHable error. It now lives in src/core/IO.pm proto sub chdir(|$) { * } multi sub chdir($path as Str) { try { pir::new__PS('OS').chdir($path) } $! ?? fail($!) !! True } -- Will "Coke" Coleda

[perl #73768] [BUG] Maybe prefix:<~> should have a warning just like prefix:<+> does on undefined values in Rakudo

2011-10-08 Thread Will Coleda via RT
On Tue Mar 23 08:11:23 2010, masak wrote: > rakudo: say ~(my $a) > rakudo db0f85: OUTPUT«Any()␤» > moritz_: were you saying this should generate a warning? > masak: I think so... the specs are rather quiet on warnings > * masak submits rakudobug > Justin Case. > rakudo: say +(my $a) > rakudo

[perl #75718] [BUG] Null PMC access when smartmatching on a subtype of Hash in Rakudo

2011-10-08 Thread Will Coleda via RT
On Fri Jul 02 14:29:14 2010, masak wrote: > Actually, it's smartmatching against a subtype of any role that causes > a Null PMC access. (Hash is a > role.) > > rakudo: role R {}; subset S of R; 1 ~~ S > rakudo 3d2cb8: OUTPUT«Null PMC access in invoke()␤ in > 'ACCEPTS' [...] 15:43 < [Coke]> rak

[perl #65900] 'my ($a is readonly) = 5' should be allowed, but assigning to it afterward should be disallowed; '(my $a is readonly) = 5' should also be disallowed... in Rakudo

2011-10-08 Thread Will Coleda via RT
On Wed Jun 30 07:14:21 2010, bbkr wrote: > $ perl6 -e 'my ($a is readonly) = 5; say $a; $a = 42; say $a' > Cannot assign to readonly value > in '&infix:<=>' at line 1 > in main program body at line 1 > > So it dies properly now. > > But test file is not working due to := not implemented in ea