lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Max Ischenko wrote:
> Services.ctl.start = function (service) ...
> works fine, while 
>  
> function Services.ctl.start(service) ...
> gets parse error. 

Are you doing this within a function definition?
Lua won't let you define a named function from within a function.

Steve