remove return_type

soon to be obsolete with multi returns
This commit is contained in:
Torsten Ruger
2015-10-28 12:19:10 +02:00
parent 142c36a374
commit 7e0778dc70
7 changed files with 24 additions and 38 deletions

View File

@ -50,7 +50,7 @@ module Soml
#puts Register.machine.space.get_class_by_name(:Integer).method_names.to_a
raise "Method not implemented #{me.type}.#{name}" unless method
Register.issue_call( @method , method )
ret = use_reg( method.source.return_type )
ret = use_reg( :Integer )
# the effect of the method is that the NewMessage Return slot will be filled, return it
# but move it into a register too
add_code Register.get_slot(@method, :message , :return_value , ret )

View File

@ -30,7 +30,7 @@ module Soml
#TODO check args / type compatibility
@method.source.init @method
else
@method = Register::MethodSource.create_method_for(@clazz, return_type, name , args )
@method = Register::MethodSource.create_method_for(@clazz, name , args )
@clazz.add_instance_method @method
end
@method.source.receiver = r