[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Indices starting from non-1 (Was: Killa: a scripting language ...)
- From: Egor Skriptunoff <egor.skriptunoff@...>
- Date: Thu, 28 Feb 2013 11:35:41 +0300
On Thu, Feb 28, 2013 at 8:06 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> x={}
> pi=math.pi
> for k=pi,20 do x[k]=k end
> print('{'..table.concat(x)..'}') --> {}
> print('{'..table.concat(x,',',pi,pi+5)..'}') --> ERROR
Very nice example!
But anyway, I'm against adding "integer" data type to Lua. )))