remove instance_names from class again

and use types names instead. For now assuming Object class
This commit is contained in:
Torsten Ruger
2016-12-19 14:20:47 +02:00
parent af9fed863f
commit aa5f48e3c6
5 changed files with 13 additions and 15 deletions

View File

@ -26,21 +26,12 @@ module Parfait
# as an instance. The relation is from an object through the Type to it's class
# TODO the object type should copy the stuff from superclass
self.instance_type = Type.new(self)
self.instance_names = List.new()
end
def allocate_object
#space, and ruby allocate
end
def set_instance_names( names )
self.instance_names = names
end
def add_instance_name name
self.instance_names << name
self.instance_type.push name
end
def sof_reference_name
name
end
@ -49,6 +40,12 @@ module Parfait
"Class(#{name})"
end
# setting the type generates all methods for this type
# (or will do, once we storet the methods code to do that)
def set_instance_type( type )
self.instance_type = type
end
# this needs to be done during booting as we can't have all the classes and superclassses
# instantiated. By that logic it should maybe be part of vm rather.
# On the other hand vague plans to load the hierachy from sof exist, so for now...