Le 24/11/2021 à 09:51, Stéphane Mottelet a écrit :
Hi,
Le 24/11/2021 à 01:42, Federico Miyara a écrit :
I'm not completely sure, but I think this is not possible since what
is passed to the function isn't a variable but the value contained in
the variable.
No. Internally, input arguments are passed as references to the true
object. There is no copy /unless an input argument *is modified*/ in
the function (in that case a copy with local scope only).
Are you sure about that? Not when they are only reached in read mode?
I might have misunderstood, but i remember a discussion with Clément
during the last ScilabTech. Clément was categorically stating that all
input arguments are copied, only and always copied.
Samuel
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users