<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Thanks for your quick answer.<br>
I think I was not really clear in my post: I am not looking for
general good practices in naming your functions or variables, but
for the actual, hard-coded limitations in Scilab for function
names.<br>
But your answer was useful as the info I was looking for is
available at 'help names'.<br>
Thanks again,<br>
<br>
Antoine<br>
<br>
On 16/04/2013 10:12, Rakshith Nayak wrote:<br>
</div>
<blockquote
cite="mid:CANTVHWZOGmBG5fAwTSJCAcHEJo=hBh=2nBsmBSY=BWmEbMLTDQ@mail.gmail.com"
type="cite">
<p>In general, rules applicable to variable names are applicable
to function names as well. <br>
For example:<br>
*Avoid builtin function name<br>
*No characters other than an underscore are allowed. <br>
*keep the names short and crisp<br>
*provide documentation when you write functions, so that neither
others or you, won't be having a problem using it, after a a
while. </p>
<div class="gmail_quote">On Apr 16, 2013 1:38 PM, "Antoine
Monmayrant" <<a moz-do-not-send="true"
href="mailto:antoine.monmayrant@laas.fr">antoine.monmayrant@laas.fr</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi everyone,<br>
<br>
I just lost a couple of hours trying to figure out what was
wrong with a function I just wrote that seemed perfectly fine
but could not be interpreted by scilab.<br>
I finally understood that you cannot define a function with a
name that starts with a number.<br>
The problem is that the error reported is not helpful at all
("Incorrect function at line 1.") and that neither 'help
function' nor 'help functions' clearly indicates this
limitation.<br>
I think I'll report a bug for that, but before doing so I
would like to know if any of you knows exactly what are the
limitations for the name of user define functions in Scilab
and where this information can be found in the documentation.<br>
<br>
Thanks in advance,<br>
<br>
Antoine<br>
_______________________________________________<br>
users mailing list<br>
<a moz-do-not-send="true" href="mailto:users@lists.scilab.org"
target="_blank">users@lists.scilab.org</a><br>
<a moz-do-not-send="true"
href="http://lists.scilab.org/mailman/listinfo/users"
target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>