Skip to main content

close_slot

Function close_slot 

Source
pub fn close_slot(state: &mut LuaState, idx: i32) -> Result<(), LuaError>
Expand description

C’s lua_closeslot: this clears the slot at idx (sets it to nil), but does not invoke the value’s __close metamethod — a destructive but incomplete stand-in. The host-side to-be-closed path is not wired into the VM’s TBC machinery (issue #278); scripts still get full <close> semantics via OP_TBC.