Octave 3.2.0: possible bug in "exist"
Jaroslav Hajek
highegg at gmail.com
Mon Jun 8 23:33:48 CDT 2009
On Mon, Jun 8, 2009 at 9:14 PM, John W. Eaton<jwe at octave.org> wrote:
> On 7-Jun-2009, Massimiliano Culpo wrote:
>
> | I am not sure that what I am reporting below is actually a bug, though
> | the behavior changed from version 3.0.X.
> |
> | It seems that function handles are not considered as variables in the
> | newer version of octave when the function "exist" is called:
> |
> | octave:1> version
> | ans = 3.2.0
> | octave:2> A = @(x) sin(x);
> | octave:3> exist("A")
> | ans = 0
> |
> | octave:1> version
> | ans = 3.0.3
> | octave:2> A = @(x) sin(x);
> | octave:3> exist("A")
> | ans = 1
> |
> | In the help of "exist" the case of a function handle is not mentioned,
> | so I don't really know which one of the two is the expected behavior.
>
> I checked in the following change.
>
> http://hg.savannah.gnu.org/hgweb/octave/rev/1a1c839625b3
>
> Jaroslav, this change should also be applied to the 3.2.x branch.
>
> Thanks,
>
> jwe
>
Done.
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
More information about the Bug-octave
mailing list