# HG changeset patch # User Rik # Date 1439177082 25200 # Node ID 8fcbb55745efb79383fb111af06a6644d4b477b4 # Parent f02c22f71cdb41b13b619482bf7df5f730332373 strfunc: Document function does not accept anonymous functions (partial fix bug #45682). * ov-fcn-handle.cc (Fstr2func): Add note to docstring that function does not accept anonymous functions. diff --git a/libinterp/octave-value/ov-fcn-handle.cc b/libinterp/octave-value/ov-fcn-handle.cc --- a/libinterp/octave-value/ov-fcn-handle.cc +++ b/libinterp/octave-value/ov-fcn-handle.cc @@ -1854,6 +1854,10 @@ \n\ If the optional @qcode{\"global\"} argument is passed, locally visible\n\ functions are ignored in the lookup.\n\ +\n\ +Note: @code{str2func} does not currently accept strings which define\n\ +anonymous functions (those which begin with @samp{a}).\n\ +Use @code{eval (@var{str})} as a replacement.\n\ @seealso{func2str, inline}\n\ @end deftypefn") {