changeset 20468:8fcbb55745ef stable

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.
author Rik <rik@octave.org>
date Sun, 09 Aug 2015 20:24:42 -0700
parents f02c22f71cdb
children 859423f351a3 97edbce9b975
files libinterp/octave-value/ov-fcn-handle.cc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-fcn-handle.cc	Thu Aug 06 21:39:49 2015 -0700
+++ b/libinterp/octave-value/ov-fcn-handle.cc	Sun Aug 09 20:24:42 2015 -0700
@@ -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")
 {