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

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

[Octave-bug-tracker] [bug #46536] Bad indexing could produce more inform


From: Rik
Subject: [Octave-bug-tracker] [bug #46536] Bad indexing could produce more informative error messages
Date: Mon, 14 Dec 2015 19:57:42 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #8, bug #46536 (project octave):

The third patch works fine.

Regarding the coding question, none of the code is performance sensivitive
since it will only be hit if an error has occurred and we are returning to the
interactive prompt.  This says that we should just do it the way we like. 
Your current patch with a temporary variable has the advantage of already
being coded.  On the other hand, if it is easy not to create a temporary
variable, call a bunch of constructors, get memory from the stack for the new
object, etc. then we should do that.

Is the only change really to add "const" to a function declaration?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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