also test array

minor (ahm) fixes to array logic
This commit is contained in:
Torsten Ruger
2015-05-12 19:03:14 +03:00
parent 398516a596
commit a94ce51c58
4 changed files with 26 additions and 26 deletions

View File

@ -24,7 +24,7 @@ end
class Parfait::Object
include FakeMem
def self.new_object *args
puts "I am #{self}"
#puts "I am #{self}"
object = self.new(*args)
object
end
@ -38,7 +38,7 @@ class Parfait::Object
@memory[index] = value
end
def internal_object_grow(index)
@memory[index] = niL
@memory[index] = nil
end
end
class Parfait::Class

View File

@ -37,6 +37,7 @@ module Parfait
internal_object_grow(length)
while( index < self.length )
internal_object_set( index , nil)
index += 1
end
end
#many basic array functions can not be defined in ruby, such as