also test array
minor (ahm) fixes to array logic
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user