lua-users home
lua-l archive

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


local a = new_a(args)
do  (a.initfun or _nullop)() end

looks like idiomatic Lua without parser hacking or semicolons, if the second line is mostly cut-and-pasted, a few characters more than

; (a.initfun or _nullop)()

scarcely seem to matter.

-- Mike Nelson