towards rubys true definition
This commit is contained in:
parent
bc89da0bc1
commit
b8b1d98a7c
@ -56,6 +56,11 @@ module Vm
|
||||
self
|
||||
end
|
||||
|
||||
def is_true? function
|
||||
function.cmp( self , 0 )
|
||||
Vm::BranchCondition.new :ne
|
||||
end
|
||||
|
||||
def move block , right
|
||||
block.mov( self , right )
|
||||
self
|
||||
|
Loading…
Reference in New Issue
Block a user