diff libinterp/corefcn/interpreter-private.h @ 26864:041caa61ed34

use get_function_handle instead of extract_function * cellfun.cc (Fcellfun, Farrayfun): Use get_function_handle instead of extract_function. * daspk.cc (daspk_fcn, daspk_jac): Now octave_value objects instead of a pointers to octave_function objects. Change all uses. (Fdaspk): Use get_function_handle instead of extract_function. * dasrt.cc (dasrt_fcn, dasrt_jac, dasrt_cf): Now octave_value objects instead of a pointers to octave_function objects. Change all uses. (Fdasrt): Use get_function_handle instead of extract_function. * dassl.cc (dassl_fcn, dassl_jac): Now octave_value objects instead of a pointers to octave_function objects. Change all uses. (Fdassl): Use get_function_handle instead of extract_function. * lsode.cc (lsode_fcn, lsode_jac): Now octave_value objects instead of a pointers to octave_function objects. Change all uses. (Flsode): Use get_function_handle instead of extract_function. * quad.cc (quad_fcn): Now an octave_value object instead of a pointer to an octave_function object. Change all uses. (Fquad): Use get_function_handle instead of extract_function. New tests. * quadcc.cc (fcn): Now an octave_value object instead of a pointer to an octave_function object. Change all uses. (Fquadcc): Use get_function_handle instead of extract_function. * __eigs__.cc (eigs_fcn): Now an octave_value object instead of a pointer to an octave_function object. Change all uses. (F__eigs__): Use get_function_handle instead of extract_function. New tests. * interpreter-private.cc (get_function_handle): Don't scold users for poor choices. * variables.h (extract_function): Tag as deprecated.
author John W. Eaton <jwe@octave.org>
date Fri, 08 Mar 2019 06:24:34 +0000
parents c589db954a4e
children 84ff9953faa1
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter-private.h	Fri Mar 08 02:49:52 2019 +0000
+++ b/libinterp/corefcn/interpreter-private.h	Fri Mar 08 06:24:34 2019 +0000
@@ -91,7 +91,7 @@
   // Convert octave_value object ARG to be a function handle object.  It
   // may be a function handle, inline function, the name of a function,
   // or the text of an inline function that has the given argument names
-  // PARAMETER_NAMES.  The latter form is deprecated.
+  // PARAMETER_NAMES.  Use of the latter form is discouraged.
 
   octave_value
   get_function_handle (octave::interpreter& interp, const octave_value& arg,