fix and test compiling classes

This commit is contained in:
Torsten Ruger
2015-07-19 10:36:06 +03:00
parent ae7350bd57
commit 0a09477dc6
3 changed files with 25 additions and 3 deletions

View File

@ -6,7 +6,7 @@ module Virtual
end
def self.compile_class expression , method
clazz = ::Space.space.get_class_by_name expression.name
clazz = Parfait::Space.object_space.get_class_by_name! expression.name
puts "Created class #{clazz.name.inspect}"
expression.expressions.each do |expr|
# check if it's a function definition and add