[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Validate parameters to Lua functions
- From: "Robert G. Jakabosky" <bobby@...>
- Date: Fri, 8 Apr 2011 02:18:59 -0700
On Friday 08, C++ RTMP Server wrote:
> Bottom line:
> Is there any lua api for further describe a LUA_TFUNCTION in greater
> detail? (parameters count, types, return type, etc)? Even if I have only
> parameters count is still better than nothing.
No, there is no way to get that info with the Lua C API.
Also function parameters have no type and there is no return type for a
function.
Why are you trying to validate the parameters of a function?
Remember Lua is a dynamic language, don't try to enforce static typing.
--
Robert G. Jakabosky