<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 24.10.2012 04:15, Tollef Fog Heen
wrote:<br>
</div>
<blockquote cite="mid:20121024081545.GC24585@err.no" type="cite">
<blockquote type="cite" style="color: #000000;">
<pre wrap="">The subject says it: can functions provided by a loaded module have
<span class="moz-txt-citetags"></span>optional arguments?
</pre>
</blockquote>
<pre wrap="">No, they can't. You could have it take a magic value like -1 or similar
to signify "unset", though.</pre>
</blockquote>
Thanks for the reply, Tollef. My goal was to make the vcl_recv be
smaller and easier to read, so, instead of using a magic value, I
renamed the actual function (which takes full set of arguments) into
foo_ex() and created a separate foo() -- which passes all the
mandatory arguments plus the default values for optional ones to
foo_ex().<br>
<br>
Still, I'd say, module-creation framework should some day support
optional arguments (supplying default values)...<br>
<blockquote>-mi<br>
</blockquote>
</body>
</html>