nargchk.m - obsolete(?) error message

Alois Schlögl alois.schloegl at tugraz.at
Fri May 15 05:02:52 CDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Currently (Octave 3.1.55), the command nargchk fails if 4th input
argument is 'struct' with the following error message:


octave:26> nargchk(1, 3, nargin,'struct')
error: nargchk: error does not yet support struct inputs
error: called from:
error:   /usr/local/share/octave/3.1.55/m/general/nargchk.m at line 64,
column 1


As far as I understand it, the 4th input argument just says whether the
output should be a struct or string. If I'm right, the error message is
obsolete and the following patch should be applied.


*** nargchk.m	2009-03-10 15:03:01.000000000 +0100
- --- nargchk.m.new	2009-05-15 11:49:25.000000000 +0200
***************
*** 59,67 ****
      if (isempty (msg.message))
        msg = struct ([]);
      endif
- -     ## FIXME: remove the error below if error is modified to accept
- -     ## struct inputs
- -     error ("nargchk: error does not yet support struct inputs");
    endif

  endfunction
- --- 59,64 ----



Alois



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoNPckACgkQzSlbmAlvEIh5RgCeI6T3hytJJvlT4ZZDJe2NYQLa
qIgAn1X8FeWBsWFkCfSzgerbC9oZoTdT
=TeJ9
-----END PGP SIGNATURE-----


More information about the Bug-octave mailing list