more booting

This commit is contained in:
Torsten Ruger
2015-05-24 13:53:49 +03:00
parent e64733d72b
commit 3c0022191b
7 changed files with 24 additions and 27 deletions

View File

@ -15,7 +15,7 @@ require_relative "meta_class"
module Parfait
class Class < Module
def initialize name , super_class = nil
def initialize name , super_class
super( name , super_class)
# the layout for this class (class = object of type Class) carries the class
# as an instance. The relation is from an object through the Layout to it's class
@ -34,16 +34,9 @@ module Parfait
@object_layout.push name
end
@@CLAZZ = { :names => [:name , :super_class_name , :instance_methods] , :types => [Virtual::Reference,Virtual::Reference,Virtual::Reference]}
def old_layout
@@CLAZZ
end
def mem_length
padded_words(3)
end
def to_s
inspect[0...300]
end
# ruby 2.1 list (just for reference, keep at bottom)
#:allocate, :new, :superclass