lua-users home
lua-l archive

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

>> A real lua programmer would not mind indices starting from PI

They're allowed but not useful just yet:

for k=pi,20 do x[k]=k end
print('{'..table.concat(x)..'}') --> {}
print('{'..table.concat(x,',',pi,pi+5)..'}') --> ERROR

You qualify as a Grade 1 Lua Fundi if you can guess
what that error message says before trying it out, and
as Grade 2 if, after seeing it, you can explain why it says
that .