# New Ticket Created by "Stephen Simmons" # Please include the string: [perl #58244] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=58244 >
In Apocalypse 12, inheritance of attributes is described, though I couldn't find it in Synopsis 12. Since "inheritance" is on the list of things that is now supported, I started playing around with it and found that inheritance of methods is supported but that inheritance of attributes is not. The file inheritance bug 1 segfaults, but inheritance bug 2, which is a simplified version, just produce an MMD function error. Here is the output from 1: -------- sully:parrot-0.7.0 stephensimmons$ perl6 ../ooxp/inheritance_bug1.p6 3,4 4,4 3, Now to try display_twice 4,4 4,4 , 1 MMD function __i_subtract not found for types (78, 92) current instr.: 'parrot;Rectangle;size' pc 1309 (EVAL_15:415) called from Sub '_block11' pc 308 (EVAL_15:89) called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806 (src/PCT/HLLCompiler.pir:481) called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1078 (src/PCT/HLLCompiler.pir:610) called from Sub 'parrot;PCT::HLLCompiler;command_line' pc 1257 (src/PCT/HLLCompiler.pir:699) called from Sub 'parrot;Perl6::Compiler;main' pc 15352 (perl6.pir:172) perl6(43278) malloc: *** error for object 0x3441d80: double free *** set a breakpoint in malloc_error_break to debug Segmentation fault -------- Here is the output from 2: -------- sully:parrot-0.7.0 stephensimmons$ perl6 ../ooxp/inheritance_bug2.p6 Classes defined. Rectangle generated. , Rectangle displayed. MMD function __i_subtract not found for types (78, 92) current instr.: 'parrot;Rectangle;size' pc 755 (EVAL_15:236) called from Sub '_block11' pc 141 (EVAL_15:43) called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806 (src/PCT/HLLCompiler.pir:481) called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1078 (src/PCT/HLLCompiler.pir:610) called from Sub 'parrot;PCT::HLLCompiler;command_line' pc 1257 (src/PCT/HLLCompiler.pir:699) called from Sub 'parrot;Perl6::Compiler;main' pc 15352 (perl6.pir:172) -------- Machine details: Darwin sully.local 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun 9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386 i386 parrot revisions 30424 and 30440 Stephen Simmons
inheritance_bug1.p6
Description: Binary data
inheritance_bug2.p6
Description: Binary data