[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: checking userdata type from lua
- From: roberto@... (Roberto Ierusalimschy)
- Date: Thu, 18 May 2006 10:10:05 -0300
> 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