lua-users home
lua-l archive

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


> I guess it is not a major issue since I can implement something based on
> luaL_checkudata pretty simply. I just didn't want to fall into the habit
> of writing C API functions for things that can actually be done in lua
> itself.

As userdata is C stuff, it is better to make C handle it. That is how
the standard library does it (see io.type).

-- Roberto