Dear Scilabers,

Is it possible to pass object (tlist) to a function by a reference ?

Example code :

function ref_test(obj)
    obj.a = 10; endfunction
o = tlist(["tlisttype", "a", "b"], 0, 0);
ref_test(o)
if o.a == 10 then
    disp("works");else
    disp("do not works");end


Regards Grzegorz
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to