This commit is contained in:
Torsten Ruger 2015-10-26 15:14:38 +02:00
parent 55dd5f74fc
commit 624699f8ed
2 changed files with 2 additions and 3 deletions

View File

@ -33,8 +33,8 @@ module Parfait
def initialize( object_class ) def initialize( object_class )
super() super()
self.object_class = object_class
add_instance_variable :layout add_instance_variable :layout
self.object_class = object_class
end end
def == other def == other

View File

@ -77,8 +77,7 @@ module Register
end end
object_class = classes[:Object] object_class = classes[:Object]
# superclasses other than default object # superclasses other than default object
supers = { :BinaryCode => :Word , :Layout => :List , supers = { :Object => :Kernel , :Kernel => :Value, :Integer => :Value }
:Object => :Kernel , :Kernel => :Value, :Integer => :Value }
layout_names.each do |classname , ivar| layout_names.each do |classname , ivar|
next if classname == :Value # has no superclass next if classname == :Value # has no superclass
clazz = classes[classname] clazz = classes[classname]