Re: Arithmetic on strings
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Arithmetic on strings
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2012年6月13日 21:31:41 -0300
> So the logic looks like:
> if(lua_isstring(L, 1)) /* we have a path */
> else if(lua_isnumber(L, 1)) /* we have an FD */
This is a typical cases where you need to switch on lua_type(L,1).
The logic will be clearer and correct.
- References:
- Re: Arithmetic on strings, Javier Guerra Giraldez
- Re: Arithmetic on strings, Roberto Ierusalimschy
- Re: Arithmetic on strings, liam mail
- Re: Arithmetic on strings, Hans Hagen
- Re: Arithmetic on strings, Roberto Ierusalimschy
- Re: Arithmetic on strings, Hans Hagen
- Re: Arithmetic on strings, Roberto Ierusalimschy
- Re: Arithmetic on strings, Hans Hagen
- Re: Arithmetic on strings, Roberto Ierusalimschy
- Re: Arithmetic on strings, Rena