[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Try Lua!
- From: Bertrand Mansion <lua@...>
- Date: Sun, 21 Jun 2009 09:34:35 +0200
On Sun, Jun 21, 2009 at 1:57 AM, Peter Cawley<lua@corsix.org> wrote:
> On Sun, Jun 21, 2009 at 12:42 AM, Miles Bader<miles@gnu.org> wrote:
>> for k,v in pairs(_G) do if (type(v) == 'table') then print (k) end end
> This seems to be something to do with input length;
>
> These two produce no output (both the same length):
> for k,v in pairs(_G) do if (type(v) == 'table') then print (k) end end
> for k ,v in pairs(_G)do if(type(v)=='table')then print(k) end end ;;
>
> These two do produce output (one is shorter than previously, one is longer):
> for k,v in pairs(_G) do if type(v) == 'table' then print(k) end end
> for k, v in pairs(_G) do if type(v) == 'table' then print(k) e
> nd end
Nice catch, I'll fix that.
Thanks Peter.
--
Bertrand Mansion
Mamasam