fix the string warning raises
This commit is contained in:
@ -39,7 +39,7 @@ module Virtual
|
||||
|
||||
def self.compile_modulename expression , method
|
||||
clazz = Parfait::Space.object_space.get_class_by_name expression.name
|
||||
raise "uups #{clazz}.#{name}" unless clazz
|
||||
raise "compile_modulename #{clazz}.#{name}" unless clazz
|
||||
to = Return.new(Reference , clazz )
|
||||
method.source.add_code Set.new( clazz , to )
|
||||
to
|
||||
|
@ -35,8 +35,8 @@ module Virtual
|
||||
#
|
||||
# compile code then works with the method, but adds code tot the info
|
||||
def self.create_method( class_name , method_name , args)
|
||||
raise "uups #{class_name}.#{class_name.class}" unless class_name.is_a? Symbol
|
||||
raise "uups #{method_name}.#{method_name.class}" unless method_name.is_a? Symbol
|
||||
raise "create_method #{class_name}.#{class_name.class}" unless class_name.is_a? Symbol
|
||||
raise "create_method #{method_name}.#{method_name.class}" unless method_name.is_a? Symbol
|
||||
clazz = Virtual.machine.space.get_class_by_name class_name
|
||||
raise "No such class #{class_name}" unless clazz
|
||||
method = clazz.create_instance_method( method_name , Virtual.new_list(args))
|
||||
|
Reference in New Issue
Block a user