Regression: Subfunctions not cleared upon function reload
Moritz Borgmann
octave at moriborg.de
Sun May 4 14:23:05 CDT 2008
Let's say I have the following files:
============ testfun1.m ============
function testfun1 ()
testscript;
function testsubfun ()
disp ('testsubfun in testfun1');
==================================
============ testscript.m ============
f = str2func ('testsubfun');
f ();
==================================
This gives
octave:5> testfun1 ()
testsubfun in testfun1
Now if I comment out the testsubfun subfunction in testfun1.m and
save the file, Octave still gives exactly the same result. Instead,
it should bail out and complain that testsubfun is not defined. It
seems like subfunctions are not properly cleared from the symbol
table upon reload of a function.
-M
More information about the Bug-octave
mailing list