# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #83874] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=83874 >
<zenog> Hi guys, another stupid beginner's question: What is wrong with the following code? http://nopaste.info/4a3ac4887a.html <zenog> I get "Invalid namespace key of type 'P6opaque' in get_pointer_keyed" <zenog> ... which does not tell me too much. <moritz_> rakudo: class Class { method public($a) {self!private($a, 'hello') }; method !private($a, $b) { say "$a says $b" } }; Class.new.public('Zeno') <p6eval> rakudo 03380c: OUTPUT«Invalid namespace key of type 'P6opaque' in get_pointer_keyed [...] <moritz_> huh. <zenog> moritz_: bug? <moritz_> zenog: bug! <zenog> moritz_: rename to "MyClass" does the job. <zenog> but of course it would be nice if rakudo reported that the class already exists ;-) * masak submits rakudobug <moritz_> rakudo: say Class <p6eval> rakudo 03380c: OUTPUT«Could not find sub &Class [...] <masak> dåligt. <zenog> masak: great, thank you! <moritz_> rakudo: class Class { }; say Class.new <p6eval> rakudo 03380c: OUTPUT«Invalid namespace key of type 'P6opaque' in get_pointer_keyed [...] <moritz_> maybe a parrot PMC leaking <masak> supposedly.