Hi, This seems to be a question of global and local scope of variables. You can try:
function o2=ref_test(obj)
o2 = obj;
o2.a = 10;
endfunction
o = tlist(["tlisttype", "a", "b"], 0, 0);
o2 = ref_test(o);
if o2.a == 10 then
disp("It works");
else
disp("It does not work");
end
Regards,
Rafael
_______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users
