2014-04-10 8:49 GMT+02:00 steve donovan <steve.j.donovan@gmail.com>:
Also, it makes particular sense when overridden by extended
metamethods, but what precisely does it mean in their absence? That
tbl[i,j] is tbl[i][j]? That's what I would expect from my old Fortran
days....
No, it means just what I said at the beginning. Term-by-term indexing.
Vararg maps to variable return list. In effect a fallback metamethod
if you have failed to provide one yourself.
For tbl[i,j] to mean matrix indexing requires extra information, and therefore
a metamethod — but at present such metamethod can't use that syntax.