[Scilab-users] global constant definition for module
    Samuel Gougeon 
    sgougeon at free.fr
       
    Fri Mar  4 23:39:54 CET 2016
    
    
  
Le 04/03/2016 23:33, Samuel Gougeon a écrit :
> .../...
> // In your scilab.ini/.scilab :
> load(path_to_set_constantes_sci+"/lib")
>
> // Where you need constantes:
> set_constantes()
>
> // Then use the constantes defined in set_constantes()
>
> The main advantage with this is that you don't need to remember where 
> set_constantes.sci is stored (to exec() it).
The other advantage is that, contrarily to with "global", we don't need 
to list the names of variables to be set as global.
This list is defined inside set_constantes(). It becomes implicit from 
outside.
SG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20160304/16623bf0/attachment.htm>
    
    
More information about the users
mailing list