<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 04/03/2016 23:33, Samuel Gougeon a
écrit :<br>
</div>
<blockquote cite="mid:56DA0D4A.8090703@free.fr" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
.../...<br>
<span style="color:rgb(176,24,19);">
</span> <span style="color:rgb(176,24,19);"><font color="#000000">//
In your scilab.ini/.scilab : </font></span><br>
<span style="color:rgb(176,24,19);"><font color="#000000">load(path_to_set_constantes_sci+"/lib")</font></span><br>
<span style="color:rgb(176,24,19);"></span><br>
<span style="color:rgb(176,24,19);"><font color="#000000">// Where
you need constantes:</font></span><br>
<span style="color:rgb(176,24,19);"><font color="#000000">set_constantes()<br>
<br>
</font></span><span style="color:rgb(176,24,19);"><font
color="#000000">// Then use the constantes defined in
set_constantes()</font></span><br>
<span style="color:rgb(176,24,19);"></span><br>
<span style="color:rgb(176,24,19);"><font color="#000000">The main
advantage with this is that you don't need to remember where
set_constantes.sci is stored (to exec() it).</font></span><br>
</blockquote>
<br>
The other advantage is that, contrarily to with "global", we don't
need to list the names of variables to be set as global. <br>
This list is defined inside set_constantes(). It becomes implicit
from outside.<br>
<br>
SG<br>
<br>
</body>
</html>