Hi all! Is there a way to pass empty set to function? For example, function function bgp_in (prefix set plist) { ... } called either as 'import where bgp_in([])' or as 'import where bgp_in()' causes error. And further, how to detect in function whether set is defined? Does built-in 'defined()' function apply to variables or function arguments? Thanks in advance! -- Alexander Shikov Technical Staff, Digital Telecom IX Tel.: +380 44 201 14 07 http://dtel-ix.net/
On Fri, Mar 07, 2014 at 06:13:06PM +0200, Alexander Shikov wrote:
Hi all!
Is there a way to pass empty set to function?
No, empty sets are not implemented, mainly because problems with their type. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (2)
-
Alexander Shikov -
Ondrej Zajicek