bring class methods down to mom

not functionally correct, still compiling into class, not metaclass
part of #24
This commit is contained in:
Torsten Ruger
2019-02-16 17:54:45 +02:00
parent 40581494de
commit 2fbea82039
5 changed files with 65 additions and 11 deletions

View File

@ -39,5 +39,14 @@ module Vool
class ModuleName < Expression
include Named
def ct_type
get_named_class.instance_type
end
def slot_definition(_)
return Mom::SlotDefinition.new( get_named_class, [])
end
def get_named_class
Parfait.object_space.get_class_by_name(self.name)
end
end
end