To Phanx:
Code:
Midkemia /home/haste
123 ~ % echo 'function a(self, ...) end function b(self, button)' end | luac -l -p -
main <stdin:0,0> (5 instructions, 20 bytes at 0x932fb30)
0+ params, 2 slots, 0 upvalues, 0 locals, 2 constants, 2 functions
1 [1] CLOSURE 0 0 ; 0x932fc58
2 [1] SETGLOBAL 0 -1 ; a
3 [1] CLOSURE 0 1 ; 0x932fee8
4 [1] SETGLOBAL 0 -2 ; b
5 [1] RETURN 0 1
function <stdin:1,1> (1 instruction, 4 bytes at 0x932fc58)
1+ param, 2 slots, 0 upvalues, 2 locals, 0 constants, 0 functions
1 [1] RETURN 0 1
function <stdin:1,1> (1 instruction, 4 bytes at 0x932fee8)
2 params, 2 slots, 0 upvalues, 2 locals, 0 constants, 0 functions
1 [1] RETURN 0 1
In other words: doing local button = ...; is perfectly fine, and enforcing coding styles upon others is just... meh*.
* Unless you are planning on contributing to a project, then adopting the coding style of the project is recommended.