octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37521] clear('functions') deletes subfunction


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #37521] clear('functions') deletes subfunctions
Date: Tue, 09 Oct 2012 20:05:13 +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

Follow-up Comment #7, bug #37521 (project octave):

First of all, sorry if my comments sound pedantic.

"what does the behavior with respect to persistent variables have to do with
anything?" - Well, in bottom of comment #4 you came up yourself with
persistent vars in relation to what you thought that "clear('functions')"
would do.

I assume that "clear('functions')" isn't meant (in the sense of: "has never
been foreseen") to be used from inside a function. What advantage would
"clear('functions')" from within a function have anyway, compared to a simple
"clear" in the same context?

But apparently you found some good use for ML's unspecified but apparent
behavior that doesn't work the same in Octave, and based on that you now
conclude that Octave is "incompatible" or even behaves "nonsensically" (no
offense taken BTW).

I'm not gonna repeat this forever:
Octave does strive for "ML compatibility", but for documented functionality
only (and BTW, not for bug-for-bug compatibility).
Now, where in the ML docs is the description of "clear('functions')" invoked
from within a function?

As to nonsensical: I can imagine a perhaps far-fetched situation where
Octave's behavior could be very useful and rational. It just depends.
Sorry if Octave doesn't do what you -based on no formal description at all-
expect it to do.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37521>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]