<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear ESI-Scilab devs,
<p>Errors numbers are announced as removed in Scilab 6. Yet, some
related features are still active, for instance:</p>
<p><font size="-1"><tt>--> error(123)</tt><br>
<tt>error: Wrong type for input argument #1: string expected.
// OK</tt><br>
<br>
<tt>--> error(123, "message")</tt> // Is this syntax
intended to be kept?<br>
<tt>message</tt><br>
<br>
<tt>--> [t, n] = lasterror()</tt><br>
<tt> n = </tt><br>
<tt> 123.</tt><br>
<br>
<tt> t = </tt><br>
<tt> message</tt><br>
<br>
<tt>--> execstr("error(456, ""message"")", "errcatch")</tt><br>
<tt> ans =</tt></font><font size="-1"><tt><br>
456.</tt></font><br>
</p>
<font size="-1"><br>
</font>It looks a bit hard to removed the 2nd lasterror() output,
because this would shift last ones (max 4 argouts), and so trigger
back-compatibility issues for nothing.<br>
<br>
But for lasterror() as for execstr(), the question is, noticeably to
be able to update the documentation in a relevant and reliable way:
Are specific errors numbers planned to still be possible --then,
what for? --, or will a unique 10000 error number be used as a
filling output for lasterror() and as a simple output flag for
execstr()?<br>
<br>
There is also the case of the 999 error number heavily used in the
hard code. If 2 distinct error numbers are kept as "standard" flags,
i guess that the distinct meaning of each of them shall be
explained..<br>
<br>
Looking forward to reading you<br>
<br>
Best regards<br>
Samuel<br>
<br>
</body>
</html>