Next: , Previous: slua_tbl_el_exists, Up: Manipulating Tables


A.2.9 slua_tbl_el_delete

delete an element from a table

Synopsis

     #include <luasup/luasup.h>
     
     
     
void slua_tbl_el_delete( lua_Object table, const char *index );

Parameters

lua_Object table
the table containing the data
const char *index
the index of the element to delete

Description

This routine sets the value of a specified element in a table to `nil', effectively deleting it.

Author

Diab Jerius