fixes the if test (regs again)

This commit is contained in:
Torsten Ruger
2014-06-12 08:34:46 +03:00
parent b125a7c5c7
commit eef6744827
3 changed files with 15 additions and 16 deletions

View File

@ -5,13 +5,9 @@ module Core
# We use this module syntax to avoid the (ugly) self (also eases searching).
module ClassMethods
#TODO this is in the wrong place. It is a function that returns a function object
# while all other methods add their code into some block. --> kernel
def putstring context
function = Vm::Function.new(:putstring , Vm::Integer , [] )
block = function.body
# should be another level of indirection, ie write(io,str)
ret = Vm::RegisterMachine.instance.write_stdout(block)
ret = Vm::RegisterMachine.instance.write_stdout(function)
function.set_return ret
function
end