Contents Prev Next Up


3.12 Function Return

ireturn

Return integer from function
 
ireturn = 172

Stack: ..., value => [empty]

value must be an integer. The value value is pushed onto the stack of the previous execution environment. Any other values on the operand stack are discarded. The interpreter then returns control to its caller.

lreturn

Return long integer from function
 
lreturn = 173

Stack: ..., value-word1, value-word2 => [empty]

value must be a long integer. The value value is pushed onto the stack of the previous execution environment. Any other values on the operand stack are discarded. The interpreter then returns control to its caller.

freturn

Return single float from function
 
freturn = 174

Stack: ..., value => [empty]

value must be a single-precision floating point number. The value value is pushed onto the stack of the previous execution environment. Any other values on the operand stack are discarded. The interpreter then returns control to its caller.

dreturn

Return double float from function
 
dreturn = 175

Stack: ..., value-word1, value-word2 => [empty]

value must be a double-precision floating point number. The value value is pushed onto the stack of the previous execution environment. Any other values on the operand stack are discarded. The interpreter then returns control to its caller.

areturn

Return object reference from function
 
areturn = 176

Stack: ..., value => [empty]

value must be a reference to an object. The value value is pushed onto the stack of the previous execution environment. Any other values on the operand stack are discarded. The interpreter then returns control to its caller.

return

Return (void) from procedure
 
return = 177

Stack: ... => [empty]

All values on the operand stack are discarded. The interpreter then returns control to its caller.

breakpoint

Stop and pass control to breakpoint handler
 
breakpoint = 202

Stack: no change


Contents Prev Next Up