Skip to content

Commit

Permalink
Prototype of the Array class
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Aug 4, 2010
1 parent f13a472 commit ff2f9de
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test2.pl
@@ -0,0 +1,15 @@
# vim: ft=perl6
use Test;

my class Array is List {
method new() {
Array.RAWCREATE("flat", 1, "items", LLArray.new, "rest", LLArray.new);
}
}
PRE-INIT { Q:CgOp { (prog (rawsset Kernel.ArrayP (@ (l Array))) (null Variable)) } }
my @x;
ok @x ~~ Array, '@x isa Array';
done-testing;

0 comments on commit ff2f9de

Please sign in to comment.