Mercurial > octave
diff scripts/general/isequal.m @ 25803:23483673ba43
Use is_function_handle instead of isa (x, "function_handle").
* ov-fcn-handle.cc (Fis_function_handle): Add BIST test for an inline function.
* gradient.m, isequal.m, isequaln.m, __makeinfo__.m,
nthargout.m, decic.m, ode15i.m, ode15s.m, ode23.m, ode45.m,
check_default_input.m, fplot.m, __ezplot__.m, __alltohandles__.m, qmr.m,
spfun.m, args.tst: Use is_function_handle instead of
isa (x, "function_handle").
author | Rik <rik@octave.org> |
---|---|
date | Wed, 15 Aug 2018 15:29:11 -0700 |
parents | 6652d3823428 |
children | 00f796120a6d |
line wrap: on
line diff
--- a/scripts/general/isequal.m Wed Aug 15 14:13:28 2018 -0700 +++ b/scripts/general/isequal.m Wed Aug 15 15:29:11 2018 -0700 @@ -162,7 +162,7 @@ idx += 1; endwhile - elseif (isa (x, "function_handle")) + elseif (is_function_handle (x)) ## function type. Use '==' operator which is overloaded. t = (x == y); @@ -291,7 +291,7 @@ idx += 1; endwhile - elseif (isa (x, "function_handle")) + elseif (is_function_handle (x)) ## function type. Use '==' operator which is overloaded. t = all (cellfun ("eq", {x}, varargin));