lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 02/28/2013 06:35 AM, Egor Skriptunoff wrote:
On Thu, Feb 28, 2013 at 8:06 AM, Dirk Laurie <> wrote:
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. )))

Wait, that's no PI!

An idea for a project: replace the fp in Luas number for a pair of integers, a and b, representing the fraction a/b. Define operations accordingly, and modify the parser.