[Scilab-users] Variables visibility in functions

RolandB jdb61858 at suoox.com
Thu May 7 22:45:41 CEST 2020


Hi,

by default, parent level variables will be visible in child level scripts. 
But once you assign a value to them in the child level script, they will be
local variables unless you define something different for them.
If you afterwards just leave the child level script without taking special
measures for transferring their value back to the parent level script, the
values assigned to them will become lost.
So the only thing you have to take care of for your situation is to
initialize all variables you want to be local with some start value before
you are doing anything else with them.





--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html



More information about the users mailing list