bytecode-op?

v


Summary

Test whether val is a bytecode operation

Arguments

val
This argument is going to be tested

Return value

Whether val is a bytecode op

Examples

(bytecode-op? (array/new #nil))
#f

(bytecode-op? #m00)
#f

(bytecode-op? (buffer/u8* #m00))
#f

(bytecode-op? #{##()
01
})
#f

(bytecode-op? 1)
#f

(bytecode-op? (int->bytecode-op 1))
#t

Bytecode

Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.

(    0 ($push/val :bytecode-op))
(    2 ($get/val 'type-of))
(    4 ($get/val 'v))
(    6 ($apply 1))
(    8 ($=))
(    9 ($ret))