<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Le 31/07/2015 14:40, Collewet Guylaine
      a écrit :<br>
    </div>
    <blockquote cite="mid:006301d0cb8e$0ba1ebe0$22e5c3a0$@irstea.fr"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Thank
            you for your answer<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">I
            am in the first case I guess (in fact the two librairies are
            one atoms module and one home-made scilab contribution)<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">When
            I try to call atoms1_lib.foo()  I get the error message
            (sorry it is in French on my computer)</span><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif";mso-fareast-language:FR"
            lang="EN-US"> : L'extraction récursive n'est pas valide dans
            ce contexte.</span></p>
      </div>
    </blockquote>
    <br>
    Actually, after testing with a<b> locally defined function</b>, i
    get as well some issues (not this one, others). <br>
    Let's try with linspace() that is a Scilab macro defined in
    elementary_functionslib:<br>
    <br>
    // Scilab 5.5.2, without never previously run linspace()<br>
    <br>
    -->function linspace(a,b,c)<br>
    -->  disp("this is my linspace()")<br>
    -->endfunction<br>
    Warning : redefining function: linspace                . Use
    funcprot(0) to avoid this message<br>
    <br>
    -->linspace()<br>
     this is my linspace()         <font color="#009900">// OK</font><br>
     <br>
    -->linspace(0,1,5)<br>
     <br>
     this is my linspace()       <font color="#009900">// OK</font><br>
     <br>
    -->elementary_functionslib.linspace(0,1,5)<br>
     !--error 10000 <br>
    linspace: Wrong number of input argument(s): 2 expected.<br>
    at line       9 of function linspace called by :  <br>
    <font color="#009900">// KO: This syntax is accepted by Scilab's
      linspace. It should work here. = Scilab 5' bug</font><br>
    <font color="#009900">// If such a bug occurs for Scilab macros, it
      will likely occur also for ATOMS ones. <br>
      // Not really encouraging...<br>
    </font> <br>
    -->linspace(0,1,5)<br>
     ans  = <br>
        0.    0.25    0.5    0.75    1.  <br>
    <font color="#009900">// Note : the previous call loaded the </font><font
      color="#009900">elementary_functionslib definition. It became and
      stands <br>
      // the current one. Since our locally redefined linspace() does
      not belong to a library, it no<br>
      // longer can be called...<br>
    </font><br>
    Results of this tests are the same with Scilab 6-alpha1.<br>
    <br>
    You may try building a library with your home-made local function.<br>
    An example of HowTo is given there, using genlib() and lib() :<br>
    <a class="moz-txt-link-freetext" href="http://fileexchange.scilab.org/toolboxes/365000/1.0#files">http://fileexchange.scilab.org/toolboxes/365000/1.0#files</a><br>
    <br>
    Then, you could use library-resolved calls.<br>
    <br>
    Samuel<br>
    <br>
  </body>
</html>