|
On 25 Sep 2006, at 16:49, Ken Smith wrote:
On 9/25/06, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:> Am I justified in expecting the first flavor to work? No. The reference manual says funcname ::= Name {'.' Name} [':' Name]In that case, I might expect the following to work but it doesn't. function steps.1 (a,b) print("steps[1]",a,b) end Can you tell me why?
name as defined above has to be a valid identifer. 1 doesn't count. For instance,
function steps.foo(a, b) is a valid alias for steps[ "foo" ] = function(a, b) -Eric