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

aweeks at hidglobal.com aweeks at hidglobal.com
Mon Jul 14 09:34:05 CEST 2014


Hi Llelan D,

Here's another thought (probably as naive as the first) - the functions
'whos' and more particularly 'who_user'. These seem to return a list of
variables (including function names).
The behaviour of 'whos' is odd in that the return doesn't seem to be a
variable (at least in my case),  'who_user' seems to work more as expected.

Good luck.

Adrian.

                                          
 Adrian Weeks                             
 Development Engineer                     
                                          
                                          
 HID Global,                              
 3 Cae Gwyrdd,                            
 Green Meadow Springs                     
 Business Park,                           
 Cardiff CF15 7AB,                        
 United Kingdom.                          
 +44 (0)29 20528523                       
 (Office)                                 
 aweeks at hidglobal.com                     
 www.hidglobal.com                        
                                          





                                                                                                                                  
  From:       "Llelan D." <LlelanD at TheSnakePitDev.com>                                                                            
                                                                                                                                  
  To:         users at lists.scilab.org                                                                                              
                                                                                                                                  
  Date:       13/07/2014 16:30                                                                                                    
                                                                                                                                  
  Subject:    Re: [Scilab-users] Multiple files of functions with the same name                                                   
                                                                                                                                  
  Sent by:    "users" <users-bounces at lists.scilab.org>                                                                            
                                                                                                                                  





@aweeks
I thought of that too. As documented, you should be able to get the list of
loaded function names from the last "exec()" by subtracting a
"listfunctions()" call prior to the "exec()" to one made after.

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 !".

Until "listfunctions()" is fully and clearly documented, it seems useless
in
this context, or at least unreliable.



--
View this message in context:
http://mailinglists.scilab.org/Scilab-users-Multiple-files-of-functions-with-the-same-name-tp4030814p4030901.html

Sent from the Scilab users - Mailing Lists Archives mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140714/9fb66e63/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 12772523.gif
Type: image/gif
Size: 4559 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140714/9fb66e63/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140714/9fb66e63/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140714/9fb66e63/attachment-0002.gif>


More information about the users mailing list