using class fields

instead of internal_get
This commit is contained in:
Torsten Ruger 2015-11-08 01:02:47 +02:00
parent 6cd95ee933
commit b443103ea4
3 changed files with 14 additions and 4 deletions

View File

@ -1,5 +1,11 @@
class Class < Object class Class < Object
field List instance_methods
field Layout object_layout
field Word name
field Word super_class_name
Word get_name() Word get_name()
return get_internal(4) return self.name
end end
end end

View File

@ -1,7 +1,10 @@
class Layout < Object class Layout < Object
field Class object_class
field List instance_methods
field Integer indexed_length
Class object_class() Class object_class()
return get_internal(2) return self.object_class
end end
end end

View File

@ -1,11 +1,12 @@
class Object class Object
field Layout layout
Layout get_layout() Layout get_layout()
return get_internal(1) return self.layout
end end
Class get_class() Class get_class()
Layout l = get_layout() Layout l = self.layout
return l.object_class() return l.object_class()
end end