lua-users home
lua-l archive

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

That would naturally not be valid Lua. However, the effect is easily achievable with token filters.


Merick kirjoitti 22.7.2007 kello 17:49:

When passing arguments to a function, I know that you can use myFunc (a,nil,c) to skip an argument (with the appropriate argument checking in the function of course). What I want to know is if there is a way to do it with myFunc(a,,c) and have the empty argument between the ,, automatically be passed as nil.