[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: NaN (was: Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage))
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 25 Jul 2016 13:21:29 +0200
2016-07-25 13:02 GMT+02:00 steve donovan <steve.j.donovan@gmail.com>:
> Not suggesting this as any kind of canonical solution, but it hides
> that .n which annoys people so much.
Note that .n appears _only_ in the return value of table.pack, and
no other Lua function uses it. It is there so that the construction
local arg = table.pack(...)
is all you need to get a Lua 4.0 program that depends on arg
all around the code to work in later versions of Lua.
If it really annoys people so much, they can put in a simple
whatever_you_prefer, arg.n = arg.n
- References:
- Quest: real world "Lua array with holes" usage, Rodrigo Azevedo
- Re: Quest: real world "Lua array with holes" usage, Roberto Ierusalimschy
- Re: Quest: real world "Lua array with holes" usage, Jorge
- Re: Quest: real world "Lua array with holes" usage, Hisham
- Re: Quest: real world "Lua array with holes" usage, Roberto Ierusalimschy
- The Undefined Country (was Re: Quest: real world "Lua array with holes" usage), Sean Conner
- Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage), nobody
- Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage), Jonathan Goble
- NaN (was: Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage)), Soni L.
- Re: NaN (was: Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage)), steve donovan
- Re: NaN (was: Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage)), Dirk Laurie
- Re: NaN (was: Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage)), steve donovan
- Re: NaN (was: Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage)), Egor Skriptunoff
- Re: NaN (was: Re: The Undefined Country (was Re: Quest: real world "Lua array with holes" usage)), steve donovan