add integer minus

rework plus to make that easy
This commit is contained in:
Torsten Ruger
2018-04-01 15:26:53 +03:00
parent 972cf47c8b
commit b1376e83bd
5 changed files with 74 additions and 15 deletions

View File

@ -184,7 +184,7 @@ module Risc
end
obj = space.get_class_by_name(:Integer)
[ :putint, :mod4, :div10, :+].each do |f| #mod4 is just a forward declaration
[ :putint, :mod4, :div10, :+ , :-].each do |f| #mod4 is just a forward declaration
obj.instance_type.add_method Builtin::Integer.send(f , nil)
end
end