comparison libinterp/octave-value/ov-fcn-handle.h @ 28197:087bccd1ab49 stable

new function to identify anonymous function handles * ov-fcn-handle.h (octave_fcn_handle::is_anonymous): New function. * ov-usr-fcn.cc (Fnargout): Use it instead of checking whether function handle name is "anonymous".
author John W. Eaton <jwe@octave.org>
date Thu, 19 Mar 2020 13:54:03 -0400
parents a0492ac068f2
children 9a3deb17b4ea
comparison
equal deleted inserted replaced
28195:7567413e7246 28197:087bccd1ab49
95 95
96 bool is_defined (void) const { return true; } 96 bool is_defined (void) const { return true; }
97 97
98 bool is_function_handle (void) const { return true; } 98 bool is_function_handle (void) const { return true; }
99 99
100 bool is_anonymous (void) const { return m_name == anonymous; }
101
100 bool is_nested (void) const { return m_is_nested; } 102 bool is_nested (void) const { return m_is_nested; }
101 103
102 dim_vector dims (void) const; 104 dim_vector dims (void) const;
103 105
104 // FIXME: These must go away. They don't do the right thing for 106 // FIXME: These must go away. They don't do the right thing for