some class send test changes

also ivar, which is still wip
This commit is contained in:
2019-09-18 22:07:58 +03:00
parent 38491d120b
commit 41617519d9
10 changed files with 79 additions and 83 deletions

View File

@ -59,8 +59,8 @@ module Mom
end
def self.compiler_for( clazz_name , method_name , arguments , locals = {})
frame = Parfait::NamedList.type_for( locals )
args = Parfait::NamedList.type_for( arguments )
frame = Parfait::Type.for_hash( locals )
args = Parfait::Type.for_hash( arguments )
MethodCompiler.compiler_for_class(clazz_name , method_name , args, frame )
end

View File

@ -40,5 +40,4 @@ require_relative "parfait/dictionary"
require_relative "parfait/type"
require_relative "parfait/cache_entry"
require_relative "parfait/message"
require_relative "parfait/named_list"
require_relative "parfait/space"

View File

@ -4,15 +4,12 @@
# A Class in general can be viewed as a way to generate methods for a group of objects.
# A MetaClass serves the same function, but just for one object, the class object that
# A MetaClass serves the same function, but just for one object, the class object that it
# is the meta_class of.
# This is slightnly different in the way that the type of the class must actually
# This is slightly different in the way that the type of the class must actually
# change, whereas for a class the instance type changes and only objects generated
# henceafter have a different type.
# This is still a first version, this change is not implemeted, also classes at boot don't
# have metaclasses yet, so still a bit TODO
# Another current difference is that a metaclass has no superclass. Also no name.
# There is a one to one relationship between a class instance and it's meta_class instance.