eval qq/print "\\t$var;\\n"/;
warn $@ if $@;
}
- if ($defaults{$var} eq 'undef') {
+ if ($defaults{$var} eq 'NO_INIT') {
$deferred .= eval qq/"\\n\\tif (items >= $num) {\\n$expr;\\n\\t}\\n"/;
} else {
$deferred .= eval qq/"\\n\\tif (items < $num)\\n\\t $var = $defaults{$var};\\n\\telse {\\n$expr;\\n\\t}\\n"/;
Default values for XSUB arguments can be specified by placing an
assignment statement in the parameter list. The default value may
-be a number, a string or the special string C<undef>. Defaults should
+be a number, a string or the special string C<NO_INIT>. Defaults should
always be used on the right-most parameters only.
To allow the XSUB for rpcb_gettime() to have a default host
You could also write a single get/set method using an optional argument:
int
- color::blue( val = undef )
+ color::blue( val = NO_INIT )
int val
PROTOTYPE $;$
CODE: