small checks
This commit is contained in:
@ -6,6 +6,7 @@ module Virtual
|
||||
# from may be a Constant (Object,Integer,String,Class)
|
||||
class Set < Instruction
|
||||
def initialize from , to
|
||||
raise "no to slot #{to}" unless to.is_a? Slot
|
||||
@from = from
|
||||
@to = to
|
||||
end
|
||||
|
Reference in New Issue
Block a user