revert to symbols
Parfait::Words were nice, but endless problems with the fact that when you write “String” you get a string. Symbols take care of uniqueness at the same time
This commit is contained in:
@ -11,7 +11,7 @@ module Virtual
|
||||
@gonners << f
|
||||
end
|
||||
end
|
||||
init= Parfait::Space.object_space.get_class_by_name("Kernel").get_instance_method "__init__"
|
||||
init= Parfait::Space.object_space.get_class_by_name(:Kernel).get_instance_method :__init__
|
||||
remove init
|
||||
dump_remaining
|
||||
end
|
||||
|
@ -39,8 +39,11 @@ module Virtual
|
||||
if ref.type.is_a?(Reference) and ref.type.of_class
|
||||
#find method and call
|
||||
clazz = ref.type.of_class
|
||||
method = clazz.resolve_method code.name.to_s
|
||||
raise "No method found #{code.name}" unless method
|
||||
begin
|
||||
method = clazz.resolve_method code.name
|
||||
rescue
|
||||
raise "No method found #{code.name} for #{clazz.name} in #{clazz.method_names}" unless method
|
||||
end
|
||||
new_codes << MethodCall.new( method )
|
||||
else
|
||||
# must defer send to run-time
|
||||
|
Reference in New Issue
Block a user