[perl #76466] [BUG] Null PMC access when referring to a lexical variable in a scope that has not been run yet in Rakudo

2011-10-10 Thread Carl Mäsak via RT
On Fri Oct 07 10:24:37 2011, coke wrote: > On Sun Jul 11 07:07:52 2010, masak wrote: > > rakudo: sub foo { my $y; our sub bar { say $y } }; bar > > rakudo 7579f7: ( no output ) > > this is problematic in my model. :/ > > and seemingly in Rakudo's, too :) > > locally, Null PMC access. > > * ma

[perl #76946] [BUG] [WEIRD] Internal Parrot on running Any .= () in Rakudo

2011-10-10 Thread Carl Mäsak via RT
On Fri Oct 07 12:02:32 2011, coke wrote: > On Tue Aug 03 04:53:23 2010, masak wrote: > > rakudo: $_ .= () > > rakudo 0a8ef0: OUTPUT«./src/pmc/object.pmc:185: failed > > assertion 'name'␤Backtrace - [...] > > * masak submits rakudobug > > rakudo: my $a; $a .= () > > rakudo 0a8ef0: OUTPUT«./src/p

[perl #77184] [BUG] Odd "'self' not found" error when mixing a role (containing a 'my $!foo' declaration) into a class in Rakudo

2011-10-10 Thread Carl Mäsak via RT
On Sun Oct 09 09:10:12 2011, coke wrote: > On Thu Aug 12 14:35:18 2010, masak wrote: > > rakudo: role A { my $!foo; }; role B { my $!foo; }; > > class C does A does B; say 'alive'; > > 12:08 < [Coke]> rakudo: role A { my $!foo; }; role B { my $!foo; }; > class C > does A does B; s

[perl #101022] [BUG] Rakudo nom segfault on '(True but role {}).say'

2011-10-10 Thread via RT
# New Ticket Created by Geoffrey Broadwell # Please include the string: [perl #101022] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=101022 > As the subject says, nom segfaults on this: (True but role {}).say No

[perl6/specs] cbb727: [S12] be explicit that Perl 6 uses C3 mro

2011-10-10 Thread noreply
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: cbb72731f19f8bcdc51cdc6d4db28ae10cfdf60b https://github.com/perl6/specs/commit/cbb72731f19f8bcdc51cdc6d4db28ae10cfdf60b Author: Moritz Lenz Date: 2011-10-10 (Mon, 10 Oct 2011) Changed paths: M S12-o

[perl #77434] [BUG] Cannot mix roles into anonymous classes in Rakudo

2011-10-10 Thread Will Coleda via RT
On Wed Aug 25 04:54:42 2010, masak wrote: > rakudo: role R { method bar { say "bar" } }; my $foo = class { > method foo { say "foo" } }; $foo does R; $foo.foo; $foo.bar > rakudo 3a339e: OUTPUT�Attempt to use rebless_subclass where > the new class was not a subclass [...] > * masak submits rakudob

[perl #68320] [BUG] TODO: $!.pending not implemented (yet)

2011-10-10 Thread Will Coleda via RT
On Sat Aug 08 00:51:28 2009, missingthepoint wrote: > eval 'widdle()'; > eval 'waddle()'; > > say "pending: " ~ $!.pending.perl; > > ... gives ... > > Method 'pending' not found for invocant of class 'Exception' > I believe this now needs a try, but is still todo: 19:07 < [Coke]> rakudo: try

[perl #64948] Rakudo thinks Matches coerced to Hashes don't have 'exists' methods

2011-10-10 Thread Will Coleda via RT
On Tue Apr 21 15:00:15 2009, masak wrote: > rakudo: say %("foo" ~~ /foo/).exists("foo") > rakudo ad7389: OUTPUT�Method 'exists' not found for invocant > of class 'Hash' [...] > that one's funny. > * masak submits rakudobug 19:10 < [Coke]> rakudo: say %("foo" ~~ /foo/).exists("foo") 19:10 <+p6ev

[perl #75874] [BUG] A real fail when doing $obj!Foo::privmeth in Rakudo

2011-10-10 Thread Will Coleda via RT
On Sat Jun 19 04:19:23 2010, masak wrote: > $b!SomeClass::xyz - would that not conflict with calling a > private method in a particular superclass of $b? > rakudo: my $b; $b!SomeClass::xyz # will fail but curious if it > parses > rakudo 8a5f38: OUTPUT«Could not find sub !!dispatch_::␤ in > main

[perl #76170] [BUG] Rakudo recognizes infix: as infix:<%%> (but shouldn't)

2011-10-10 Thread Will Coleda via RT
On Sun Jun 27 14:16:12 2010, masak wrote: > rakudo: say 9 !% 3 > rakudo d16a2f: OUTPUT«1␤» > * masak submits rakudobug > masak: that's the output i would expect, what were you expecting? > std: say 9 !% 3 > std 31481: OUTPUT«===SORRY!===␤Can't negate > % because multiplicati

[perl #77660] [BUG] X*= doesn't modify the original array in Rakudo

2011-10-10 Thread Will Coleda via RT
On Thu Sep 02 20:55:52 2010, masak wrote: > rakudo: my @a = 1, 2, 3; @a X*= 5; say @a.perl; @a = @a X* 5; > say @a.perl; > rakudo 33e94e: OUTPUT«[1, 2, 3]␤[5, 10, 15]␤» > Should X*= have worked? If not, how to best scale a vector > without repeating the vector's array name? > @b = @a X* 5 > :P

[perl #75776] [BUG] [WEIRD] Wrong error message for something that shouldn't parse in Rakudo

2011-10-10 Thread Will Coleda via RT
On Tue Jun 15 08:37:28 2010, masak wrote: > rakudo: my $d; class A {method x { $d }}; for () { sub } > rakudo 99b6dd: OUTPUT«===SORRY!===␤Symbol '$ss_SS_S_S__S_S_s' > not predeclared [...] > locally, "Symbol '$d' not predeclared in " > * masak , honsetly confused, submits rakudobug > std: my $d

[perl #63430] return statements in CATCH blocks cause infinite regress in Rakudo

2011-10-10 Thread Will Coleda via RT
On Mon Feb 23 22:36:18 2009, masak wrote: > rakudo: sub s { try { return 1; CATCH { return 2 } } }; say s > OK, seems like the try block catches return exceptions. > rakudo 2a9382: No output (you need to produce output to STDOUT) > * masak submits rakudobug 19:27 < [Coke]> rakudo: sub s { try {

[perl #66634] [BUG] Null PMC access when rebinding a type from an enum value inside a class in Rakudo

2011-10-10 Thread Will Coleda via RT
On Tue Jul 27 18:42:29 2010, coke wrote: > On Tue Jun 16 08:57:58 2009, masak wrote: > > rakudo: class A { enum B ; ::c = B::c }; say A::c > > rakudo ba09b2: OUTPUT«Null PMC access in getprop() [...] > > * masak submits rakudobug > > masak: ::c is lexically scoped. > > pmichaud: meaning it can

[perl #66650] [BUG] Null PMC access when accessing a value of an enum renamed with a 'constant' declaration in Rakudo

2011-10-10 Thread Will Coleda via RT
On Tue Jun 16 15:15:51 2009, masak wrote: > rakudo: enum A::B ; constant B = A::B; say B::c > rakudo 952fe6: OUTPUT�Null PMC access in invoke() [...] > * masak submits rakudobug 19:35 < [Coke]> rakudo: enum A::B ; constant B = A::B; say B::c 19:35 <+p6eval> rakudo 38907e: OUTPUT«A::B::c␤» Closa

[perl #76664] [BUG] Null PMC access involving reverse causality when calling a method with s/// syntax in it in Rakudo

2011-10-10 Thread Will Coleda via RT
On Tue Jul 27 18:45:07 2010, coke wrote: > On Thu Jul 22 09:58:56 2010, masak wrote: > > rakudo: class A { method pack($_) { s/c// }}; > > A.new.pack("ccc") # discovered by cono++ > > rakudo 220b67: OUTPUT«Null PMC access in find_method('new') > [...] > > * masak submits rakudobug > > > > Remove

[perl #76508] [BUG] Segfault on binding a variable to itself in Rakudo

2011-10-10 Thread Will Coleda via RT
On Wed Jul 14 11:47:11 2010, masak wrote: > rakudo: my $a = 2;$a := $a; say $a > rakudo c8b6cf: ( no output ) > rakudo: my $a = 2;my $b; $b := $a; say $b > rakudo c8b6cf: OUTPUT«2␤» > isn't the first one a bug? > looks like. > unless p6eval is acting up again. > it segfaults locally > * ma

[perl #76508] [BUG] Segfault on binding a variable to itself in Rakudo

2011-10-10 Thread Will Coleda via RT
On Wed Jul 14 11:47:11 2010, masak wrote: > rakudo: my $a = 2;$a := $a; say $a > rakudo c8b6cf: ( no output ) > rakudo: my $a = 2;my $b; $b := $a; say $b > rakudo c8b6cf: OUTPUT«2␤» > isn't the first one a bug? > looks like. > unless p6eval is acting up again. > it segfaults locally > * ma

[perl #75896] [BUG] Internal error when declaring an array to be of type 'Array of Int' in Rakudo

2011-10-10 Thread Will Coleda via RT
On Sun Jun 20 07:47:26 2010, masak wrote: > rakudo: my Array of Int @box > rakudo ee7620: OUTPUT�Method '!select' not found for invocant > of class '' [...] > this currently causes S02-builtin_data_types/declare.rakudo to > fail two tests early. > * masak submits rakudobug 19:41 < [Coke]> rakud

[perl #77000] [BUG] * not supported for first argument of postcircumfix operators

2011-10-10 Thread Will Coleda via RT
On Wed Aug 04 18:16:38 2010, cognominal wrote: > > ([ [ 5], [3] ].sort: *[0] ).perl > No candidates found to invoke for method 'sort' on object of type > 'Array'; available candidates have signatures: > :(Mu : &by = { ... };; *%_) > > > ([ { :pos<5>}, { :pos<4> } ].sort: *. ).perl > postcircumfix:

[perl6/specs] 6b021e: Take a first quack at defining "duck mapping"

2011-10-10 Thread noreply
Branch: refs/heads/master Home: https://github.com/perl6/specs Commit: 6b021ee247dcda4496e1e04b74ad0fa1025499b6 https://github.com/perl6/specs/commit/6b021ee247dcda4496e1e04b74ad0fa1025499b6 Author: Larry Wall Date: 2011-10-10 (Mon, 10 Oct 2011) Changed paths: M S03-op

[perl #76692] Rakudo segfaults in parrot_hash_destroy when loading SVG::Plot

2011-10-10 Thread Will Coleda via RT
On Fri Jul 23 09:27:52 2010, moritz wrote: > Rakudo 4bf6c0f7bd4fe3be4df2f2f11a8d09147a172ad6 on top of parrot > r48153 > segfaults when running the sample code from the README in SVG::Plot. > > (gdb) run synopsis.pl > syn.svg > Starting program: /home/moritz/bin/perl6 synopsis.pl > syn.svg > [Thre

[perl #73344] [BUG] the where clause of parameters is attached to the wrong outer scope on our subs in Rakudo

2011-10-10 Thread Will Coleda via RT
On Sat Mar 06 05:23:08 2010, masak wrote: > when I write 'our sub foo', the scope of the parameters in the > signature of foo is a global scope rather than a lexical scope, yes? > uh, no > only 'foo' is aliased > so, how about this? > rakudo: my $a = 1; sub foo() { my $a = 2; our sub bar($x wh

[perl #73688] [BUG] Miscounting of arguments going on in a case involving positional placeholder parameters in Rakudo

2011-10-10 Thread Will Coleda via RT
On Sat Mar 20 11:00:52 2010, masak wrote: > rakudo: { &^c("$^a, $^b") }.("morning", "perl6ers", &say) > rakudo 7ccf14: OUTPUT«Not enough positional parameters > passed; got 3 but expected 4 [...] > jnthn: help me with this one :) 4? > rakudo: { &^c("$^a, $^b") }.("morning", "perl6ers", &say, &s

[perl #73784] Error occurs when pointing to not-assigned characters in unicode with \x

2011-10-10 Thread Will Coleda via RT
On Tue Mar 23 22:21:10 2010, lue wrote: > [22:09:43] rakudo: say "\xFDD0" > [22:09:45] rakudo db0f85: OUTPUT�Malformed string?current > instr.: 'perl6;PCT;HLLCompiler;evalpmc' pc 972 > (compilers/pct/src/PCT/HLLCompiler.pir:538)?� > [22:09:52] rakudo: say "\xFFFD" > [22:09:55] rakudo db0f85:

[perl #67942] 'enum Foo %h' calls sub h() and then throws Null PMC access

2011-10-10 Thread Will Coleda via RT
On Tue Jul 27 20:01:29 2010, coke wrote: > On Mon Jul 27 11:24:12 2009, moritz wrote: > > 20:21 <@jnthn> rakudo: my %h; sub h { say "srsly wtf" }; enum Foo > %h; > > 20:21 < p6eval> rakudo 4c31fb: OUTPUT«srsly wtf␤Null PMC access in > > get_number()␤in Main (/tmp/RYyqcc1SKd:2)␤» > >

[perl #75710] [BUG] Whitespace trouble involving a sub whose name begins with 'x' in Rakudo

2011-10-10 Thread Will Coleda via RT
On Sun Jun 13 10:07:20 2010, masak wrote: > okay, someone review what I'm doing and please tell me I'm > missing something obvious... http://paste.lisp.org/+2DYG > > pmichaud@orange:~/rakudo$ cat x > > our sub xyz($abc) { say $abc.WHAT; } > > xyz(1); > > pmichaud@orange:~/rakudo$ ./perl6 x >

[perl #76928] [BUG] undefined value for a missing hash optional argument does not know its metaclass.

2011-10-10 Thread Will Coleda via RT
On Mon Aug 02 05:05:56 2010, cognominal wrote: > > sub a( %h?) { say %h.HOW }; a(); > Method 'HOW' not found for invocant of class 'Hash' > > Also I would expect it to DWIM in a code like that > > sub a( %h?, *%h1) { say "{%h.defined} {%h1.defined}"; say {%h, > %h1}.keys }; > a( :b ); > Diff

[perl #76270] [BUG] Class creation should give the class back as a value, not a Code in Rakudo

2011-10-10 Thread Will Coleda via RT
On Tue Jun 29 07:01:09 2010, masak wrote: > on the REPL, when I write 'role R {}', it prints 'R()'. but > when I do 'class C {}', it prints '!class_init_36'. I'm guessing > there's a metamodel explanation for that, but it feels Less Than > Pretty. > I'm guessing the class code is returning the cl

[perl #73938] [BUG] Internal error when declaring a twigil in Rakudo

2011-10-10 Thread Will Coleda via RT
On Wed Mar 31 14:16:33 2010, masak wrote: > masak: have you seen this one? > rakudo: sub twigil:<@> {}; # masak: sry for the delay > rakudo 872898: OUTPUT�error:imcc:syntax error, unexpected > '\n' [...] > * masak submits rakudobug > diakopter: no, hadn't seen that one :) > lue gets most of th

[perl #69316] [BUG] Null PMC access when trying to initialize a nested class from the constructor of the outer class in Rakudo

2011-10-10 Thread Will Coleda via RT
On Tue Jul 27 19:57:29 2010, coke wrote: > On Wed Sep 23 04:39:28 2009, masak wrote: > > rakudo: class Forest { class Frog { method speak { say > "ribbit > > ribbit" } }; has Frog $.frog; method new() { my Frog $frog .= new; > > self.bless(*, :$frog) } }; Forest.new > > rakudo 0eaf62: OUTPUT«Null

[perl #69756] [BUG] Null PMC access when doing callwith inside a multi method

2011-10-10 Thread Will Coleda via RT
On Tue Oct 13 16:05:16 2009, masak wrote: > rakudo: multi sub f(0) {}; multi sub f($n) { say $n; > callwith($n - 1) }; f(3) > rakudo 54cfe4: OUTPUT«3␤Null PMC access in clone()␤ [...] > * masak submits rakudobug > > jnthn++ informs me that the above code is likely not what I want. > Nevertheless