<div dir="ltr"><div>Dear Stephane,</div><div><br></div><div>thanks for tip, slint can help, but for me it looks like a manual bypass.</div><div>What I need, is that for function in level_1 (<a href="https://wiki.scilab.org/howto/global%20and%20local%20variables">https://wiki.scilab.org/howto/global%20and%20local%20variables</a>)</div><div>variables from level_0 are not visible.</div><div><br></div><div>is this possible?<br></div><div><div><div dir="ltr" data-smartmail="gmail_signature"><br>BR</div><div dir="ltr" data-smartmail="gmail_signature"><br></div><div data-smartmail="gmail_signature">JK<br></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">št 7. 5. 2020 o 14:40 Stéphane Mottelet <<a href="mailto:stephane.mottelet@utc.fr" target="_blank">stephane.mottelet@utc.fr</a>> napísal(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Use Scilab slint tool:<br>
<br>
<a href="https://help.scilab.org/docs/6.1.0/en_US/slint.html" rel="noreferrer" target="_blank">https://help.scilab.org/docs/6.1.0/en_US/slint.html</a><br>
<br>
S.<br>
<br>
Le 07/05/2020 à 14:01, kjubo a écrit :<br>
> Dear all,<br>
><br>
> I would like to ask you, how can I disable visibility of variables from<br>
> workspace for functions.<br>
><br>
> I need to be sure, that function which I convert from script file, will not<br>
> use any variable, which is not in it input, or defined inside the function<br>
> itself.<br>
><br>
> Please see examples below.<br>
><br>
> Is this possible?<br>
>          <br>
> Thank you<br>
>          <br>
> BR<br>
>          <br>
> JK<br>
><br>
>          example 1:<br>
><br>
>          a = 3<br>
>          function fx = some_fun(x,a)<br>
>              fx = x+a<br>
>          endfunction<br>
><br>
>          calling some_fun(5) now return 3+5, but I need to be an error.<br>
><br>
><br>
>          example 2:<br>
><br>
>          a = 3<br>
>          function fx = some_fun(x)<br>
>              fx = x+a<br>
>          endfunction<br>
><br>
>          I need also error, as variable a should be passed as input argument<br>
> or defined inside some_fun body<br>
><br>
><br>
><br>
> --<br>
> Sent from: <a href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html" rel="noreferrer" target="_blank">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html</a><br>
> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
> <a href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a><br>
<br>
-- <br>
Stéphane Mottelet<br>
Ingénieur de recherche<br>
EA 4297 Transformations Intégrées de la Matière Renouvelable<br>
Département Génie des Procédés Industriels<br>
Sorbonne Universités - Université de Technologie de Compiègne<br>
CS 60319, 60203 Compiègne cedex<br>
Tel : +33(0)344234688<br>
<a href="http://www.utc.fr/~mottelet" rel="noreferrer" target="_blank">http://www.utc.fr/~mottelet</a><br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div></div>