Regression: subfunction's scope when called via fhandle
Moritz Borgmann
octave at moriborg.de
Mon May 5 16:41:32 CDT 2008
The following fails for me:
=== test.m ===
f = testfun();
f()
===========
=== testfun.m ===
function f = testfun ()
f = str2func ('testsubfun');
function [x] = testsubfun ()
x = anothersubfun();
function x = anothersubfun()
x = 11;
=================
when calling test, the result should be 11, but instead Octave
(current hg default) complains
error: `anothersubfun' undefined near line 5 column 5
error: evaluating assignment expression near line 5, column 3
-M
More information about the Bug-octave
mailing list