Permalink
Browse files

testing implementation of Array.length

  • Loading branch information...
1 parent 822e4bd commit bd736610bfa3c6a07d465b6b2a60b1ecd7b1657a @NotFound NotFound committed Apr 20, 2009
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/classes/Array.pir
View
@@ -344,6 +344,16 @@ Create a new object having the same class as the invocant.
.return(self)
.end
+.sub 'get_pmc_keyed' :vtable :method
+ .param string key
+ if key == 'length' goto len
+ say ' - Uhhh'
+ .return()
+len:
+ $I0 = self
+ .return($I0)
+.end
+
# Local Variables:
# mode: pir
# fill-column: 100

0 comments on commit bd73661

Please sign in to comment.