# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #62002]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=62002 >


Due to the structurally recursive nature of C<.perl>, the fact that
Rakudo r34997 doesn't give newly defined classes a default C<.perl>
method upon definition is very keenly felt e.g. when doing C<.perl> on
a list of instances of the new class.

$ perl6 -e '(class {}).new.perl'Method 'perl' not found for invocant of class ''
[...]
$ perl6 -e 'class A {}; A.new.perl'
Method 'perl' not found for invocant of class 'A'
[...]

Two questions naturally arise: the first is why this method isn't
inherited from Object? The second is what such a default C<.perl>
should output.

I have a vague feeling that similar tickets have been submitted
before. But this question needs to be put forward until the spec is
clarified (or whatever is the blocker) -- missing methods is one of
the few things that can ruin a scripting session.

Reply via email to