octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #39271] error('') does not abort execution of


From: anonymous
Subject: [Octave-bug-tracker] [bug #39271] error('') does not abort execution of script.
Date: Tue, 18 Jun 2013 13:32:24 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:21.0) Gecko/20100101 Firefox/21.0

Follow-up Comment #3, bug #39271 (project octave):

Ok, i just checked with R2012a. You are right that error('') will do nothing,
just as octave. The "help error" for Matlab says error() should be a no-op in
case of an empty struct passed, but doesn't say what should happen in case of
an empty string.

However, the behaviour of the mex api function mexErrMsgTxt("") differs in
case of the 0-terminated empty string. On Matlab, it will abort the mex
function and just "print" the empty error string, ie., nothing. On Octave,
execution continues. This is how i found the difference, because the error
handling of some of our mex files behaved weird in our octave port. I've
worked around this by passing a non-empty error string.

Should i file a new bug report, only referring to mex api anomalies?

Thanks,
-mario

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39271>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]