<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi again,<br>
</p>
<div class="moz-cite-prefix">Le 07/05/2020 à 21:28, Jakub Kopac a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAPenAnCrX=GjUYzFVk7fQS6kXgfedusfrx7tjgFL4154h5BmTg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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>
</blockquote>
<p>Sorry but you were not that clear;</p>
<p> </p>
<blockquote type="cite">> 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>
></blockquote>
I thought you just wanted to identify functions using this sort of
variable scoping before conversion (to what software ?)<br>
<blockquote type="cite"
cite="mid:CAPenAnCrX=GjUYzFVk7fQS6kXgfedusfrx7tjgFL4154h5BmTg@mail.gmail.com">
<div dir="ltr">
<div>What I need, is that for function in level_1 (<a
href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/wiki.scilab.org/howto/global%20and%20local%20variables"
moz-do-not-send="true">https://wiki.scilab.org/howto/global%20and%20local%20variables</a>)</div>
<div>variables from level_0 are not visible.</div>
</div>
</blockquote>
<p>This is a fundamental feature of variable scope in Scilab. You
may find it useful or dangerous, but this is just the way it is
and cannot be disactivated...<br>
</p>
<p>S.<br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAPenAnCrX=GjUYzFVk7fQS6kXgfedusfrx7tjgFL4154h5BmTg@mail.gmail.com">
<div dir="ltr">
<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"
moz-do-not-send="true">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://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/help.scilab.org/docs/6.1.0/en_US/slint.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">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/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">users@lists.scilab.org</a><br>
> <a
href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users"
rel="noreferrer" target="_blank" moz-do-not-send="true">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="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.utc.fr/~mottelet"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.utc.fr/~mottelet</a><br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank"
moz-do-not-send="true">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" moz-do-not-send="true">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
<a class="moz-txt-link-freetext" href="http://www.utc.fr/~mottelet">http://www.utc.fr/~mottelet</a>
</pre>
</body>
</html>