Bug: Function Handles as Default Arguments
Bill Denney
bill at denney.ws
Sun May 18 00:27:27 CDT 2008
Hi,
I was working on some code tonight where I was wanting to use some
default arguments, and I had some trouble with it, so I tried to find
some examples. I went looking into the tests directory, and I noticed
that there were no tests for the default arguments, so I put some in
(and modified the tests that were already there so that they would work
with a normal test call, i.e. test test_args).
When I was putting them in, I found that Octave doesn't like function
handles as default arguments. It gives a different error for normal
function handles and anonymous handles.
Attached is a changeset that demonstrates these errors (and changes the
form of test_args to be testable from the command line).
Have a good day,
Bill
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_args.changeset
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080518/e1ec6066/attachment.ksh
More information about the Bug-octave
mailing list