<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt'>
<p>Hi Samuel,</p>
<p>thank you for the explanations, I was starting to really wonder why I could not manage to reproduce the example :).</p>
<p>About lib() not working in YaSp : that is quite strange as I use lib() in the loader of my toolbox and in some macros to call internal functions and it works. I use the version 1435245504 under windows. The library must be generated with the YaSp version though (as you have pointed out in your other post) and it must contain at least one function with the same name of the file (I do not really understand this restriction though).</p>
<p>Indeed, the name given to a library through genlib() does not appear to be used anywhere (not even when libraryinfo() or whereis() are called). It may either be discarded or appear in libraryinfo(). Concerning libraryinfo(), I also find quite distrubing that it requires, as argument, the name (i.e. a string) of the variable containing the library and not the variable itself (or even better, the name given to the library with genlib()?).</p>
<p>Best regards.</p>
<p> </p>
<p>Le 15.07.2015 12:25, Samuel Gougeon a écrit :</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="moz-cite-prefix">Hi Pierre,<br /><br /> Le 15/07/2015 09:37, <a class="moz-txt-link-abbreviated" href="mailto:contact@pierre-vuillemin.fr">contact@pierre-vuillemin.fr</a> a écrit :</div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">.../...<br /> but this_is_a_very_very_long_function_name() is unknown. </blockquote>
.<br /> You are right! When i did successfully the trial before posting to answer you, i used<br /><span style="font-family: Courier New,Courier,monospace;">clear this_is_a_very_very_long_function_name</span><br /> before using lib, because i compiled this_is_a_very_very_long_function_name() by hand during previous tests.<br /> So, to be sure that the function will be loaded by lib(..) instead of coming from a former compilation, i did this "clear..."<br /><br /> BUT after tests of reproducibility before answering you here, i have just found  that "clear" is bugged, and just posted that: <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/13979">http://bugzilla.scilab.org/13979</a><br /> !<br /> I am unable to reproduce in Scilab 5.5.2 the formerly posted successful story. In all ways, indeed, as you were claiming it, it fails.<br /><br /> These tests have shown other bugs. For instance, lib() is not (yet?) available in YaSp (2015-07-12 release)..., <br /> and since getd() is bugged <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/13890">http://bugzilla.scilab.org/13890</a>, it turns hard to work with YaSp.<br /><br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Besides, in the help page of "genlib", it is written that "Scilab tacitly assumes that file foo.sci defines at least a function named foo" which is not the case here. </blockquote>
.<br /> That's also right. As you certainly also tested it, other tests confirm that.<br /> There are other "strange" constrains with libraries. For example, genlib() needs a library name (first argin), but when loading a library with lib(), the genlib library name (that looks to build the "lib" file) looks to not be used. At least, the name of the library loaded by lib looks to depend on the name of the  lhs as test_lib = lib(libdir), instead of on the genlib libname... It would not be unpleasant to rationalize / simplify that with Scilab 6.<br /><br /> Best regards<br /> Samuel<br /><br /><!-- html ignored --><br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> dev mailing list<br /><a href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a><br /><a href="http://lists.scilab.org/mailman/listinfo/dev">http://lists.scilab.org/mailman/listinfo/dev</a></div>
</blockquote>
<p> </p>
<div> </div>
</body></html>