array to list conversion

start on layouts
This commit is contained in:
Torsten Ruger
2015-05-16 14:01:48 +03:00
parent bee269f7a8
commit 7085dee510
6 changed files with 45 additions and 9 deletions

View File

@@ -22,6 +22,17 @@
module Parfait
class Layout < List
# set the names of the instance variables in one go
# used while booting the classes. At runtime the list would grow dynamically
def set_names list
self.set_length list.length
index = 0
while index < list.length do
list.set(index , array.get(index))
end
end
# beat the recursion! fixed known offset for class object in the layout
def get_object_class()
return internal_object_get(2)
end