Hi, looking at the not-too-old (two years?) possibility of indicating an
automatic function argument value, there's a little hiccup in
combination with the also new numeric thing:
<hansl>
function void hey_num(numeric ho[auto]) # error
eval (exists(ho) ? ho : "nope")
end function
</hansl>
Notice the error already appears at the function definition, no need to
call it.
This is of course a very special thing, I'm not even sure I expected it
to work. On the other hand, "numeric" could be a matrix or series, and
for those types it is supported. (For scalars, it's not directly
supported AFAIK, because there's the traditional way of specifying an
automatic default value.)
thanks
sven
Show replies by date