Re: [Scilab-users] Variables visibility in functions

2020-05-07 Thread Stéphane Mottelet
Hi again, Le 07/05/2020 à 21:28, Jakub Kopac a écrit : Dear Stephane, thanks for tip, slint can help, but for me it looks like a manual bypass. Sorry but you were not that clear; > I need to be sure, that function which I convert from script file, will not > use any variable, which is not

Re: [Scilab-users] Variables visibility in functions

2020-05-07 Thread Jakub Kopac
Dear Stephane, thanks for tip, slint can help, but for me it looks like a manual bypass. What I need, is that for function in level_1 ( https://wiki.scilab.org/howto/global%20and%20local%20variables) variables from level_0 are not visible. is this possible? BR JK št 7. 5. 2020 o 14:40

Re: [Scilab-users] Variables visibility in functions

2020-05-07 Thread Stéphane Mottelet
Here is a small example. Although the name of fields of returned struct is very cryptic, the information you need can be easily recovered. mputl(["function [y] = foo(x)" "y = x + a" "y = y + b" "endfunction"],"slint_test.sci") out = slint("slint_test.sci",%f) if

Re: [Scilab-users] Variables visibility in functions

2020-05-07 Thread Antoine Monmayrant
Hello, I am not sure to understand what you want to achieve here. It is not really clear for me. You might be able to hack something using 'exists" but I am not sure that it would fit nicely with the way Scilab is designed... Antoine On 07/05/2020 14:01, kjubo wrote: Dear all, I would

Re: [Scilab-users] Variables visibility in functions

2020-05-07 Thread Stéphane Mottelet
Hi, Use Scilab slint tool: https://help.scilab.org/docs/6.1.0/en_US/slint.html S. Le 07/05/2020 à 14:01, kjubo a écrit : Dear all, I would like to ask you, how can I disable visibility of variables from workspace for functions. I need to be sure, that function which I convert from script

[Scilab-users] Variables visibility in functions

2020-05-07 Thread kjubo
Dear all, I would like to ask you, how can I disable visibility of variables from workspace for functions. I need to be sure, that function which I convert from script file, will not use any variable, which is not in it input, or defined inside the function itself. Please see examples below.