<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 05/03/2017 à 16:06, Samuel Gougeon a
      écrit :<br>
    </div>
    <blockquote cite="mid:902d3764-86ee-0546-ff7d-2e0516b95d74@free.fr"
      type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <br>
      <div class="moz-cite-prefix"> Le 04/03/2017 à 12:27, Pierre
        Vuillemin a écrit :<br>
      </div>
      <blockquote
        cite="mid:1971c8b0-6ccc-fd90-f630-e8301e13a52b@pierre-vuillemin.fr"
        type="cite">
        <meta http-equiv="content-type" content="text/html;
          charset=windows-1252">
        <p>Hi all,</p>
        <p>I'm a bit confused by functions in Scilab and specifically
          the way they handle their arguments. For instance, in the
          following code</p>
        <p><font size="-1">deff('g(x)','disp(x)');</font><br>
          <font size="-1">g; // produces an error saying x is not
            defined</font><br>
          <font size="-1">x = 1;</font><br>
          <font size="-1">g; // call the function g and displays x...</font><br>
        </p>
        <p>leads to two questions,<br>
        </p>
        <ul>
          <li>the function g is called each time, shouldn't it be only
            displayed?</li>
        </ul>
      </blockquote>
      <br>
      I agree with you: since g is written without (empty) (),
      considering it as the function handle instead of a function call
      would be more consistent, as when we write: d = g  // to set an
      alias of g.<br>
    </blockquote>
    <br>
    Hmm, actually, such a change would prevent handy calls like<br>
    <tt>--> help<br>
    </tt>Having to enter<br>
    <tt>--> help()</tt><tt><br>
    </tt>would be definitely less handy.<br>
    <br>
    Samuel<br>
    <br>
  </body>
</html>