zero_type(parm) is your friend. This kind of question is more in scope with the pike list than the focus of pike-dev, by the way.
/ Johan Sundström (Achtung Liebe!)
Previous text:
2004-02-12 10:20: Subject: void|int function parameters - how to check if those are passed?
Hi,
Found that for function like:
f(void|int parm)
the condition intp(parm) == 1 is always true, regardless of how it will be called - f() or f(integer_value).
Sure I can use "mixed ... args", but this is not really convenient...
This is in 7.4.28.
Do I've any options? :)
/Al
/ Brevbäraren