nargchk and nargoutchk

Matt Foster matt.p.foster at gmail.com
Wed Jun 25 15:14:19 CDT 2008


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?

Cheers,
Matt

-- 
Matt Foster | http://my-mili.eu/matt


More information about the Bug-octave mailing list