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