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: Tue, 3 Dec 2019 17:22:25 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #57351 (project octave):

              Item Group:                    None => Other                  
                  Status:                    None => Confirmed              
                 Summary: str2func behavour changes in dev octave => str2func
no longer emits error on non-existent function input

    _______________________________________________________

Follow-up Comment #2:

This change was made to support Matlab which does late-binding of name to
function.  This is useful because you can declare a handle to a function,
without having that function immediately available.  Only when you actually
attempt to execute the function does the interpreter check for existence.

Using grep in the scripts/ directory I find that ode15i.m, ode15s.m, ode23.m,
ode45.m, and ode/private/check_default_input.m likely have the same issue. 
Here is an example


if (ischar (options.Jacobian))
  try
    options.Jacobian = str2func (options.Jacobian);
  catch
    warning (lasterr);
  end_try_catch
  if (! is_function_handle (options.Jacobian))
    error ("Octave:invalid-input-arg",
           [solver ": invalid value assigned to field 'Jacobian'"]);
  endif





    _______________________________________________________

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]