<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>Bonjour,<br>
    </p>
    <div class="moz-cite-prefix">Le 26/05/2020 à 13:46, Lamy Alain a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:8F232902ADB4E14EB16789FB7006FC84729ABBC1@TW-MBX-P01.cnesnet.ad.cnes.fr">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Monospaced;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
p.PrformatHTML, li.PrformatHTML, div.PrformatHTML
        {mso-style-name:"Préformaté HTML";
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:"Courier New";
        mso-fareast-language:FR;}
p.Textebrut, li.Textebrut, div.Textebrut
        {mso-style-name:"Texte brut";
        mso-style-link:"Texte brut Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.TextebrutCar
        {mso-style-name:"Texte brut Car";
        mso-style-priority:99;
        mso-style-link:"Texte brut";
        font-family:"Calibri",sans-serif;}
span.EmailStyle26
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.scilabcommand
        {mso-style-name:scilabcommand;}
span.scilabstring
        {mso-style-name:scilabstring;}
span.EmailStyle29
        {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="FR">Oui :
            on ne peut pas modifier une variable globale dans une
            fonction.
          </span></p>
      </div>
    </blockquote>
    <p>Si, justement, mais c'est très laid :</p>
    <p>function test()<br>
        global a<br>
        a(2)=[3,4]<br>
      end<br>
    </p>
    <p>global a<br>
      a = list([1,2,4])<br>
      test()<br>
      disp(a)<br>
    </p>
    <p>--> disp(a)<br>
      <br>
      <br>
                   (1)<br>
      <br>
         1.   2.   4.<br>
      <br>
                   (2)<br>
      <br>
         3.   4.<br>
    </p>
    <blockquote type="cite"
cite="mid:8F232902ADB4E14EB16789FB7006FC84729ABBC1@TW-MBX-P01.cnesnet.ad.cnes.fr">
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D" lang="FR"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="FR">Le
            mieux : <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="FR"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:black;mso-fareast-language:FR">a</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR">
            <span style="color:#5C5C5C">=</span> <span
              style="color:#32B9B9">list</span><span
              style="color:#4A55DB">()</span><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#B01813;mso-fareast-language:FR">function</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR">
            [a] =
            <u><span style="color:black">test</span></u><span
              style="color:#4A55DB">(a)</span><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR">   
            <span style="color:black">a</span><span
              style="color:#4A55DB">(</span><span
              style="color:rosybrown">2</span><span
              style="color:#4A55DB">)</span>
            <span style="color:#5C5C5C">=</span> <span
              style="color:#4A55DB">[</span><span
              style="color:rosybrown">3</span><span style="color:black">,</span><span
              style="color:rosybrown">4</span><span
              style="color:#4A55DB">]</span><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#B01813;mso-fareast-language:FR">endfunction</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:black;mso-fareast-language:FR">a</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB;mso-fareast-language:FR">(</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown;mso-fareast-language:FR">1</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB;mso-fareast-language:FR">)</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR">
            <span style="color:#5C5C5C">=</span> <span
              style="color:#4A55DB">[</span><span
              style="color:rosybrown">1</span><span style="color:black">,</span><span
              style="color:rosybrown">2</span><span style="color:black">,</span><span
              style="color:rosybrown">4</span><span
              style="color:#4A55DB">]</span><o:p></o:p></span></p>
        <p class="MsoNormal"><u><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:black;mso-fareast-language:FR">a
              = test</span></u><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB;mso-fareast-language:FR">(a)</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#32B9B9;mso-fareast-language:FR">disp</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB;mso-fareast-language:FR">(</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:black;mso-fareast-language:FR">a</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB;mso-fareast-language:FR">)</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:#1F497D">Alain Lamy<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:#1F497D">CNES - DSO/DV/IF - Bpi 1712<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:#1F497D" lang="FR">18, Av. Edouard Belin 
              |  Tel  : 05 61 27 35 61<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:#1F497D" lang="FR">31401 Toulouse Cedex 9
              |  Fax  : 05 61 28 25 40<o:p></o:p></span></p>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:#1F497D" lang="FR">France                
              |  Email :
              <a href="mailto:Alain.Lamy@cnes.fr" moz-do-not-send="true"><span
                  style="color:#0563C1">Alain.Lamy@cnes.fr</span></a></span><span
              style="color:#1F497D" lang="FR"><o:p></o:p></span></p>
        </div>
        <p class="MsoNormal"><span style="color:#1F497D" lang="FR"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b>From:</b> users-fr
              <a class="moz-txt-link-rfc2396E" href="mailto:users-fr-bounces@lists.scilab.org"><users-fr-bounces@lists.scilab.org></a> <b>
                On Behalf Of </b>GOBILLOT Gilles 116128<br>
              <b>Sent:</b> mardi 26 mai 2020 13:26<br>
              <b>To:</b> French users mailing list for Scilab
              <a class="moz-txt-link-rfc2396E" href="mailto:users-fr@lists.scilab.org"><users-fr@lists.scilab.org></a><br>
              <b>Subject:</b> Re: [Users-fr] [PROVENANCE INTERNET] Un
              problème de liste<o:p></o:p></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="FR">Bonjour,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="FR"><o:p> </o:p></span></p>
        <pre><span style="font-family:"Calibri",sans-serif;color:#1F497D" lang="FR">A mon avis il faut soit passer a en paramètre à la fonction, soit déclarer la liste en global  (</span><span style="color:#32B9B9" lang="FR">global</span><span style="color:#333333" lang="FR"> </span><span style="color:rosybrown" lang="FR">a</span><span style="font-family:"Calibri",sans-serif;color:#1F497D" lang="FR">)?</span><span style="color:#333333" lang="FR"><o:p></o:p></span></pre>
        <p class="MsoNormal"><span style="color:#1F497D" lang="FR"><o:p> </o:p></span></p>
        <div>
          <p class="MsoNormal"><span
              style="color:#1F497D;mso-fareast-language:FR" lang="FR">Cordialement,<o:p></o:p></span></p>
          <table class="MsoNormalTable" style="width:357.75pt" width="0"
            cellspacing="0" cellpadding="0" border="0">
            <tbody>
              <tr>
                <td rowspan="2" style="width:89.25pt;padding:0cm 0cm 0cm
                  0cm" width="119" valign="top">
                  <p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:justify"><a
href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.cea.fr/"
                      moz-do-not-send="true"><span
style="font-size:8.0pt;font-family:"Arial",sans-serif;color:blue;mso-fareast-language:FR;text-decoration:none"><img
                          style="width:1.0625in;height:.875in"
                          id="Image_x0020_1"
                          src="cid:part2.91CB4076.53118A8B@utc.fr"
                          alt="http://www.cea.fr/var/cea/signatures/cea_logo.jpg"
                          class="" width="102" height="84" border="0"></span></a><span
style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#4D4D4D;mso-fareast-language:FR"><o:p></o:p></span></p>
                </td>
                <td style="width:268.5pt;padding:0cm 0cm 0cm 0cm"
                  width="358" valign="top">
                  <p class="MsoNormal"
                    style="mso-margin-top-alt:auto;margin-bottom:4.8pt"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#C00000;mso-fareast-language:FR">Gilles
                      GOBILLOT</span><span
style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#4D4D4D;mso-fareast-language:FR"><br>
                      <b><span style="text-transform:uppercase">Ingénieur-Chercheur
                        </span></b><o:p></o:p></span></p>
                  <p class="MsoNormal" style="margin-bottom:9.6pt"><span
style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#4D4D4D;mso-fareast-language:FR">DES/IRESNE/DTN/STCP/LISM
                      <br>
                      Commissariat à l'énergie atomique et aux énergies
                      alternatives <br>
                      Tel.: 04.42.25.20.33 / Mobile : 06.87.99.19.57 <o:p></o:p></span></p>
                </td>
              </tr>
              <tr>
                <td style="padding:0cm 0cm 0cm 0cm" valign="bottom">
                  <p class="MsoNormal" style="mso-margin-top-alt:auto"><i><span
                        style="font-size:10.0pt;font-family:"Times
                        New
                        Roman",serif;color:black;mso-fareast-language:FR">Toute
                        notre actualité sur
                      </span></i><span
                      style="color:#1F497D;mso-fareast-language:FR"><a
href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.cea.fr/"
                        moz-do-not-send="true"><span
                          style="font-size:10.0pt;font-family:"Times
                          New Roman",serif;color:#C00000">www.cea.fr
                          <br>
                        </span></a></span><i><span
                        style="font-size:10.0pt;font-family:"Times
                        New
                        Roman",serif;color:black;mso-fareast-language:FR">Suivez-nous
                        également sur Twitter :</span></i><span
                      style="font-size:10.0pt;font-family:"Times
                      New
                      Roman",serif;color:black;mso-fareast-language:FR">
                    </span><span
                      style="color:#1F497D;mso-fareast-language:FR"><a
href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/twitter.com/#!/CEA_Recherche"
                        moz-do-not-send="true"><span
                          style="font-size:10.0pt;font-family:"Times
                          New Roman",serif;color:#C00000">@CEA_Recherche</span></a></span><span
                      style="font-size:10.0pt;font-family:"Times
                      New
                      Roman",serif;color:black;mso-fareast-language:FR"><o:p></o:p></span></p>
                </td>
              </tr>
            </tbody>
          </table>
          <p class="MsoNormal"><span
              style="color:#1F497D;mso-fareast-language:FR" lang="FR"><o:p> </o:p></span></p>
        </div>
        <p class="MsoNormal"><span style="color:#1F497D" lang="FR"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
                  style="mso-fareast-language:FR" lang="FR">De :</span></b><span
                style="mso-fareast-language:FR" lang="FR"> users-fr <<a
                  href="mailto:users-fr-bounces@lists.scilab.org"
                  moz-do-not-send="true">users-fr-bounces@lists.scilab.org</a>>
                <b>De la part de</b> AUZANNEAU Fabrice<br>
                <b>Envoyé :</b> mardi 26 mai 2020 12:23<br>
                <b>À :</b> French users mailing list for Scilab <<a
                  href="mailto:users-fr@lists.scilab.org"
                  moz-do-not-send="true">users-fr@lists.scilab.org</a>><br>
                <b>Objet :</b> [PROVENANCE INTERNET] [Users-fr] Un
                problème de liste<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">Bonjour<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">J’utilise des listes
            dans un code Scilab et je rencontre un problème pour les
            modifier dans une fonction. Un exemple simple :<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:black;mso-fareast-language:FR">a</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR">
            <span style="color:#5C5C5C">=</span> <span
              style="color:#32B9B9">list</span><span
              style="color:#4A55DB">()</span><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#B01813;mso-fareast-language:FR">function</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR">
            <u><span style="color:black">test</span></u><span
              style="color:#4A55DB">()</span><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR">   
            <span style="color:black">a</span><span
              style="color:#4A55DB">(</span><span
              style="color:rosybrown">2</span><span
              style="color:#4A55DB">)</span>
            <span style="color:#5C5C5C">=</span> <span
              style="color:#4A55DB">[</span><span
              style="color:rosybrown">3</span><span style="color:black">,</span><span
              style="color:rosybrown">4</span><span
              style="color:#4A55DB">]</span><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#B01813;mso-fareast-language:FR">endfunction</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:black;mso-fareast-language:FR">a</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB;mso-fareast-language:FR">(</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown;mso-fareast-language:FR">1</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB;mso-fareast-language:FR">)</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR">
            <span style="color:#5C5C5C">=</span> <span
              style="color:#4A55DB">[</span><span
              style="color:rosybrown">1</span><span style="color:black">,</span><span
              style="color:rosybrown">2</span><span style="color:black">,</span><span
              style="color:rosybrown">4</span><span
              style="color:#4A55DB">]</span><o:p></o:p></span></p>
        <p class="MsoNormal"><u><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:black;mso-fareast-language:FR">test</span></u><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB;mso-fareast-language:FR">()</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#32B9B9;mso-fareast-language:FR">disp</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB;mso-fareast-language:FR">(</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:black;mso-fareast-language:FR">a</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB;mso-fareast-language:FR">)</span><span
style="font-size:9.0pt;font-family:"Monospaced",serif;mso-fareast-language:FR"><o:p></o:p></span></p>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText"><span lang="FR">L’exécution donne ce
            message d’erreur :<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">à la ligne     2 de la
            fonction test ( C:\Users\***\Desktop\list.sce ligne 10 )<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">à la ligne    13 du
            fichier exécuté C:\Users\***\Desktop\list.sce<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">Sous-matrice
            incorrectement définie.<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">Lorsque je demande le
            contenu de la liste a, j’obtiens :<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">--> a<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">a  = <o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">       a(1)<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">1.           2.   4.<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">Si je mets l’instruction
            de la fonction dans le programme principal, tout se passe
            bien :<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">a</span><span style="font-size:9.0pt;font-family:"Monospaced",serif"> <span style="color:#5C5C5C">=</span> <span style="color:#32B9B9">list</span><span style="color:#4A55DB">()</span><o:p></o:p></span></pre>
        <pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">a</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">1</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">)</span><span style="font-size:9.0pt;font-family:"Monospaced",serif"> <span style="color:#5C5C5C">=</span> <span style="color:#4A55DB">[</span><span style="color:rosybrown">1</span><span style="color:black">,</span><span style="color:rosybrown">2</span><span style="color:black">,</span><span style="color:rosybrown">4</span><span style="color:#4A55DB">]</span><o:p></o:p></span></pre>
        <pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">a</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:rosybrown">2</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">)</span><span style="font-size:9.0pt;font-family:"Monospaced",serif"> <span style="color:#5C5C5C">=</span> <span style="color:#4A55DB">[</span><span style="color:rosybrown">3</span><span style="color:black">,</span><span style="color:rosybrown">4</span><span style="color:#4A55DB">]</span><o:p></o:p></span></pre>
        <pre><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#32B9B9">disp</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">(</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:black">a</span><span style="font-size:9.0pt;font-family:"Monospaced",serif;color:#4A55DB">)</span><span style="font-size:9.0pt;font-family:"Monospaced",serif"><o:p></o:p></span></pre>
        <p class="MsoPlainText"><o:p> </o:p></p>
        <p class="MsoPlainText"><span lang="FR">L’exécution donne :<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">exec('C:\Users\***\Desktop\list.sce',
            -1)<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">             (1)<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">   1.   2.   4.<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">             (2)<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">   3.   4.<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">Est-ce un bug ou une
            erreur de ma part ? Comment modifier une liste depuis une
            fonction ?<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span lang="FR">Merci<o:p></o:p></span></p>
        <p class="MsoPlainText"><span style="mso-fareast-language:FR"
            lang="FR"><o:p> </o:p></span></p>
        <p class="MsoPlainText"><span style="mso-fareast-language:FR"
            lang="FR">Fabrice AUZANNEAU<o:p></o:p></span></p>
        <p class="MsoPlainText"><span style="mso-fareast-language:FR"
            lang="FR">Commissariat à l’énergie atomique et aux énergies
            alternatives<o:p></o:p></span></p>
        <p class="MsoPlainText"><span lang="FR"><a
href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users-fr"
              moz-do-not-send="true"><span
                style="color:windowtext;text-decoration:none">http://lists.scilab.org/mailman/listinfo/users-fr</span></a><o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
users-fr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users-fr@lists.scilab.org">users-fr@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users-fr">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users-fr</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
<a class="moz-txt-link-freetext" href="http://www.utc.fr/~mottelet">http://www.utc.fr/~mottelet</a>
</pre>
  </body>
</html>