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

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

[Octave-bug-tracker] [bug #57351] str2func no longer emits error on non-


From: Rik
Subject: [Octave-bug-tracker] [bug #57351] str2func no longer emits error on non-existent function input
Date: Wed, 29 Jan 2020 10:18:35 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #5, bug #57351 (project octave):

It shouldn't be closed.  There is no issue with the str2func() function. 
However, there are several functions which rely on the old behavior for input
validation, which they should no longer do.

What is required is a review and possible tweak to the input validation for
ode15i.m, ode15s.m, ode23.m, ode45.m, and ode/private/check_default_input.m. 
There may be packages which are also incorrectly coded, but I only used grep
with core Octave.

If one requires that the function be present when the odeXX.m file is called
then exist() should be used instead of the try/catch block sequence.  If it is
not important then the entire try/catch block can be eliminated and, for the
code in comment #2, replaced with


options.Jacobian = str2func (options.Jacobian);


No one who wrote these routines is on the CC list for this bug report.  It
might be a good idea to post to the Octave Maintainer's list so that Carlo de
Falco, Marco Caliari, Francesco Faccio, or Jacopo Corno sees it.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57351>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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