[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compatibility considerations of "clear"
From: |
John W. Eaton |
Subject: |
Re: Compatibility considerations of "clear" |
Date: |
Wed, 14 Aug 2013 15:25:08 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
On 08/14/2013 02:16 PM, Philipp Kutin wrote:
[...]
We aren't stupid, you don't have to spell out every little detail. We
know what a workspace is, y'know?
I think the attached patch will fix the behavior for clear without any
arguments.
Is the current Octave behavior for functions also wrong? Given the function
function foo ()
persistent x
if (isempty (x))
disp ('x is not initialized');
x = 1;
end
end
what do the following commands do?
foo
foo
foo = 1
foo
clear foo
foo
clear foo
foo
In any case, it looks like the documentation for clear in Octave no
longer matches its behavior with regard to clearing functions.
jwe
diffs.txt
Description: Text document
Re: Compatibility considerations of "clear", Julien Bect, 2013/08/15
Re: Compatibility considerations of "clear", Jordi GutiƩrrez Hermoso, 2013/08/14