lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I have a table indexed by pointers (lightuserdata) with userdata values
to allow me to look up pointers and return userdata to Lua

However in the userdata's __gc method I need to remove the
pointer key from the table, there seems to be no analogue of
table.remove(t,i) in lua's C api - or am I missing something obvious

please, please don't tell me I have to copy all the keys but one
to a temporary table and the recreate my pointer table
and then copy them back (head meet wall, wall meet head....)

Thanks
Chris

--
Disclaimer:
By sending an email to ANY of my addresses you are agreeing that:

  1. I am by definition, "the intended recipient"

  2. All information in the email is mine to do with as I see fit and
make such financial profit, political mileage, or good joke as it lends
itself to. In particular, I may quote it where I please.

  3. I may take the contents as representing the views of your company.

  4. This overrides any disclaimer or statement of confidentiality that
may be included on your message.