[Scilab-users] Multiple files of functions with the same name

Samuel Gougeon sgougeon at free.fr
Sun Jul 13 17:56:58 CEST 2014


Le 13/07/2014 17:29, Llelan D. a écrit :
> However, "listfunctions()" acts in some strange and undocumented ways. For
> example, if you start with a clean invocation of the interpreter console and
> run "listfunctions()", it lists the function "listfunctions" itself. If you
> do a "typeof(asinh)" and then a "listfunctions()", it will now list "! asinh
> typeof listfunctions !".
When an unknown symbol looking like the call to a function is met, 
Scilab scans the list of functions registered in loaded libraries. If a 
function name matches the symbol, it is loaded from the related library.
This means that every function registered in a loaded library is loaded 
only when it is first called.
In your experiment, it is the case for typeof and asinh and selfly for 
listfunctions. So, the answer from listfunctions is normal.

Samuel




More information about the users mailing list