nargchk and nargoutchk
John W. Eaton
jwe at bevo.che.wisc.edu
Fri Aug 22 13:25:12 CDT 2008
On 25-Jun-2008, Matt Foster wrote:
| I've noticed that nargchk isn't compatible with matlab, because it
| doesn't take a fourth argument specifying the output type.
| I've also noticed, on looking in the hg repo, that the function
| nargoutchk has this functionality, and is otherwise exactly the same!
|
| Am I missing something (again!), or would it be worthwhile to make
| them the same function?
|
| I don't what the policies regarding this kind of thing are, but I'm
| happy to make a quick patch if it would be helpful.
| My idea was to make a function called __nargchk__, and then call that
| from both nargchk and nargoutchk, much in the same was as isequal
| does.
|
| Is this worth doing, or can someone else point me in the right direction?
It would be helpful to make Octave's nargchk compatible. I'd
certainly consider a patch.
If there are common features of nargchk and nargoutchk that could be
combined in a single function to avoid duplication, then that would
also be good. We use that approach for other functions.
Thanks,
jwe
More information about the Bug-octave
mailing list