lua-users home
lua-l archive

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


> Is it that difficult to remember that there are 3 ways to call a function 
> ('foo(..)', 'foo "string"', and 'foo {table}')?  Ok, always passing a table
> would be nice, simple, and _slow_.

The Lua compiler is quite capable of optimising single-argument tables in
function passing, I'm sure (anyway, with my syntax, you'd have to pass a
literal table as foo {{..}}). But you're right, I don't want to get rid of
the constructor syntax.

I suppose really I just don't like the string special case.

-- 
http://sc3d.org/rrt/ | certain, a.  insufficiently analysed