lua-users home
lua-l archive

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


I know arrays start from 1 in lua, and the lua libraries adhere to this convention. Is there a way (a macro perhaps) to get it to start from 0 instead and have the libraries working as usual?
My setup  is as follows:
From a c++ world/environment, I have an  antler parser gets which "generates" a lua testcase. Each of these tests that I generate are not pure lua, they are in a  "c calling lua" and in turn "lua-calling c" environment, that gets run on slave processors. When I generate the lua testcases, if I could have everything starting from 0, life would gets a lot easier for me...
 
Thanks
cynthia