On Thu, Dec 10, 2009 at 10:05:28PM +0100, Søren Hauberg wrote:
> tor, 10 12 2009 kl. 21:10 +0100, skrev Søren Hauberg:
> > tor, 10 12 2009 kl. 20:43 +0100, skrev Thomas Weber:
> > > No, the problem is in line 57:
> > >   error(nargchk(2,5,nargin))
> > > 
> > > This line causes the error. I don't understand why, though. nargin is 2
> > > and calling error(nargchk(2,5,2)) works without problem.
> > > 
> > > The problem seems to be the call of error() inside a test. The following
> > > function (saved as v.m) shows the same problem:
> > > 
> > > ==========================================================================
> > > function v()
> > >         error(nargchk(2,5,2))
> > > endfunction
> > > 
> > > %!test v
> > > ==========================================================================
> > 
> > I cannot reproduce the problem in your example using the development
> > version of Octave. So, I guess this is a bug in Octave that has been
> > fixed since 3.2.3.
> 
> I guess this is the bug in question:
> 
> https://www-old.cae.wisc.edu/pipermail/bug-octave/2009-September/009550.html

Okay, thanks. The attached patch works for me. I don't intend to commit
it, as the problem lies in Octave and has already been fixed in the
development branch.

        Thomas

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to