struct StackMachine::Load

Overview

Struct for Load opcode

Defined in:

stackmachine/opcode.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(index : Int32) #

[View source]

Instance Method Detail

def call(& : Int32 -> ) : Void #

Pass in a block to perform specified operation with the underlying index

Load.new.call do | index |
  do_something_with index
end

[View source]