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

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

[Octave-bug-tracker] [bug #45957] Error "A(I) = X: X must have the same


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #45957] Error "A(I) = X: X must have the same size as I" not very informative
Date: Wed, 16 Sep 2015 12:43:01 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.1.0

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

Instead of using a global context variable that must always be set to get
better information in the error message, isn't this a place where throwing an
exception would also solve the problem, and then only incur the overhead when
the exception is found?  That way, indexing code that wants to catch the
exception and also add info about the context could do so, and otherwise, you
would just get a more generic error about a failed indexing operation.

I realize that using an exception would be a pretty big departure from
existing practice for error handling in Octave, but I think it should be
considered.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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