# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #58936] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=58936 >
With Rakudo 0.7.0-devel r31065 inheritance works as in this single file: class Dog { has $.name is rw; method bark() { say "$.name says Woof!"; } } class Pug is Dog { method set_name( $n ) { $.name = $n; } } my $pot = Pug.new(); $pot.set_name( 'Spot' ); $pot.bark(); But move class Dog { ... } into Dog.pm and import it with 'use Dog;' and Rakudo is like 'Attempt to inherit from non-existent parent class'. On 2008-09-16 in #perl6 moritz explains that 'use' happens (erroneously) at run time whereas it should happen at compile time, and gives a workaround 'BEGIN { use Dog; };' that works. Synopsis 11 topic "Runtime Importation" contrasts 'use' and 'require' in terms of time. This request is to obviate the workaround.