Re: Function Existence
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Function Existence
- From: Edgar Toernig <froese@...>
- Date: 2001年11月26日 22:43:17 +0100
> I would check lua_type, instead of lua_isnil, just for safety.
Just as a side note: I don't like these checks for function type.
Every type is possibly callable. What about tables that implement
the function tag method? Using isnil to decide whether an object
was given or not is OK, but explicitly enforcing a function type
is IMHO wrong.
Ciao, ET.