# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #66694]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66694 >
<masak> rakudo: class Failure is also { method foo {say "OH HAI"} }; .foo
<p6eval> rakudo 9dc941: OUTPUT«OH HAI»
<moritz_> new in Perl 6: extensinble undef!
<masak> rakudo: class Failure is also { method defined { True } }; say .defined
<p6eval> rakudo 9dc941: ( no output )
* masak snickers
<masak> that one gives a bus error on my box.
<moritz_> it's what happens when a program tries to use memory outside
of its address range
<masak> rakudo: class Failure is also { method perl { "HOLA!" } }; say .perl
<p6eval> rakudo 9dc941: ( no output )
<masak> seems the problem is in overriding methods that were defined already.
<moritz_> "no output" is wrong though
<masak> moritz_: yes. that's what I mean.
<moritz_> ah yes, it's a segfault
<moritz_> which, for whatever reasons, is printed to the console, not to IRC
<masak> "no output" here means that a bus error occurred.
<masak> rakudo: class A { method foo { 1 } }; class A is also { method
foo { 2 } }; A.new.foo
<p6eval> rakudo 9dc941: ( no output )
<masak> ah.
<masak> and it's not just PIR methods.
* masak submits rakudobug