[aquaria] [PATCH] Backward compatibility for scripts

Ryan C. Gordon icculus at icculus.org
Tue May 3 15:09:29 EDT 2011


> - The "v = getVars()" boilerplate line at the top of each script has
>    been changed to read "if not v then v = {} end".

Can we just change this so when the lua state is originally created, we 
set the global 'v' to an empty table in C code, so scripts don't need to 
do this at all?

(also, maybe we change getVars() to be a C function that just returns 
the global 'v', so we don't have to change scripts regardless of where 
they landed?)

I don't know all the details, so this might not be practical.

--ryan.



More information about the aquaria mailing list