Octave 3.2.0: possible bug in "exist"

Massimiliano Culpo misticoannoiato at yahoo.it
Sun Jun 7 03:41:27 CDT 2009


Dear all,

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.

Best regards,
Massimiliano



More information about the Bug-octave mailing list