[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: passing nil as an argument
- From: Asko Kauppi <askok@...>
- Date: Sun, 22 Jul 2007 20:00:32 +0300
That would naturally not be valid Lua. However, the effect is easily
achievable with token filters.
-asko
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.