Problem with the affectation cmde "=" applied to a "list of struct" in scilab 6.0.0 alpha1
Reported by labergri
BUG DESCRIPTION:
----------------
In the sample below using a variable of type "list" containing a "struct", the affectation cmde "=" leads to a wrong result in scilab v6.0.0 alpha1.
ERROR LOG:
----------
--> st.a="aa";
--> LST=list(st);
--> LST1=LST; //copy of LST
--> LST(1).a="zz"; //modify LST
--> LST=LST1; //recover initial LST
--> LST(1).a //should be "aa"
ans =
zz
HOW TO REPRODUCE THE BUG:
-------------------------
st.a="aa";
LST=list(st)
LST1=LST; //copy of LST
LST(1).a="zz"; //modify LST
LST=LST1; //recover initial LST
LST(1).a //should be "aa"
OTHER INFORMATION:
------------------
in Scilab v 5.5.1 the result is ok :
-->st.a="aa";
-->LST=list(st);
-->LST1=LST; //copy of LST
-->LST(1).a="zz"; //modify LST
-->LST=LST1; //recover initial LST
-->LST(1).a //should be "aa"
ans =
aa