[Scilab-users] Dot operator on a handle
Samuel Gougeon
sgougeon at free.fr
Sun Sep 29 14:32:53 CEST 2013
Hello,
Le 29/09/2013 11:37, Stefan Du Rietz a écrit :
> Error setting a property of a graphics entity with the dot operator on
> a handle from a calling function
It may be related to variable reachability. When "a" is not passed to
testhandle2(),
this function must get it from the calling environnement. When in
testhandle()
a = f.children; is set, "a" is a local variable = pointer to the handle
that is global.
If one inserts the line
a = a
at the very beginning of testhandle2() (before the first disp),
the difference of behavior disappears and type==9 is returned in both cases.
Anyway, this difference is quite strange. In testhandle2(), the first
disp calling type(a) should force the local definition of "a" if "a" is
not passed among input arguments, and adding a=a should make no difference.
The fact that in some cases a struct is returned could be a piece of work
aiming to answer to http://bugzilla.scilab.org/show_bug.cgi?id=7407
Or it could be a side effect of the fix of
http://bugzilla.scilab.org/show_bug.cgi?id=7110
Or.. ?
Regards
Samuel
More information about the users
mailing list