KOS_OP_ATTR_TAKE
Style: CONST. Arg = constant pool index of attribute name.
Stack:
[..., obj] → [..., value]. Get attribute, delete it, push value. Errors if attribute missing.Invariants: TOS is the object.
Compiler form: Emitted by
compile/take-attrwhen OBJ is not a symbol.Implementation:
koskari/lib/opcode/ATTR_TAKE.cCovered by:
tests/lib/opcode/test_take_opcodes.py