Stanislav has asked for the wisdom of the Perl Monks concerning the following question:
Then I took an example of class from wiki http://en.wikipedia.org/wiki/Perl_6. Here is code:$ svn co https://svn.perl.org/parrot/trunk parrot $ cd parrot $ perl Configure.pl; make $ cd languages/perl6/; make perl6
When I try to execute this script I get:#!/home/stas/perl/parrot/languages/perl6/perl6 class Point is rw { has $.x; has $.y; }
Where is problem? May be it's not implemented yet... ThanksAttempt to inherit from non-existent parent class current instr.: 'die' pc 12249 (src/gen_builtins.pir:7489) called from Sub 'trait_auxiliary:is' pc 15862 (src/gen_builtins.pir:99 +27) called from Sub '_block13' pc 122 (EVAL_12:47) called from Sub 'parrot;PCT;HLLCompiler;evalpmc' pc 804 (src/PCT/HLLCo +mpiler.pir:468) called from Sub 'parrot;PCT;HLLCompiler;compile' pc 434 (src/PCT/HLLCo +mpiler.pir:303) called from Sub 'parrot;PCT;HLLCompiler;eval' pc 836 (src/PCT/HLLCompi +ler.pir:493) called from Sub 'parrot;PCT;HLLCompiler;evalfiles' pc 1201 (src/PCT/HL +LCompiler.pir:667) called from Sub 'parrot;PCT;HLLCompiler;command_line' pc 1380 (src/PCT +/HLLCompiler.pir:756) called from Sub 'parrot;Perl6;Compiler;main' pc 16140 (perl6.pir:168)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl 6 class
by moritz (Cardinal) on Nov 18, 2008 at 15:34 UTC | |
by Stanislav (Novice) on Nov 18, 2008 at 16:00 UTC | |
by Limbic~Region (Chancellor) on Nov 18, 2008 at 16:22 UTC | |
by moritz (Cardinal) on Nov 18, 2008 at 16:10 UTC | |
by Stanislav (Novice) on Nov 18, 2008 at 16:35 UTC |