|
From: | Philip Nienhuis |
Subject: | [Octave-bug-tracker] [bug #37521] clear('functions') deletes subfunctions |
Date: | Sun, 07 Oct 2012 17:05:50 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6 |
Update of bug #37521 (project octave): Status: None => Need Info Summary: Not sure of Matlab allows passing arguments as well. => clear('functions') deletes subfunctions _______________________________________________________ Follow-up Comment #2: (Changed title for you.) What effect do you expect from "clear functions"? FYI, Octave -unlike Matlab- does not have nested subfunctions implemented (yet) (although I think it is in the dev version now). What's the output of the following (in both Octave and Matlab): $ cat <<EOF >subfunction.m function subfunction() clear functions; end subfunction_1(); function subfunction_1() fprintf('hi\n'); end EOF $ octave > subfunction ? (note the two end statements - in Octave we'd rather use "endfunction" but with "end" you can also run it in Matlab) _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?37521> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |