add delete to list
This commit is contained in:
@ -90,6 +90,13 @@ module Parfait
|
||||
old_length = old_length + 1
|
||||
end
|
||||
end
|
||||
def internal_object_shrink(length)
|
||||
old_length = internal_object_length()
|
||||
while( length < old_length )
|
||||
@memory.delete_at(old_length)
|
||||
old_length = old_length - 1
|
||||
end
|
||||
end
|
||||
|
||||
def to_s
|
||||
Sof::Writer.write(self)
|
||||
|
Reference in New Issue
Block a user