|
I think, that's very good example for upvalues (aka external local variables) behaviour. I suppose, you should propose for your situtation to be described here: http://www.lua.org/manual/5.1/manual.html#2.6 since it defines 'locals vs external locals' programmer's choice