<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Allo?<br>
<br>
Le 01/02/2018 à 16:12, Samuel Gougeon a écrit :<br>
</div>
<blockquote cite="mid:3baf5d8e-e410-0f29-8d6d-34667790dc45@free.fr"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
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 remove 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>
</blockquote>
<br>
What i understand:<br>
<ul>
<li>Contrarily to what has been announced: error numbers are not
removed<br>
6.0 CHANGES:<br>
<div class="refsection"> Feature changes and additions<br>
<div class="refsection">
<ul>
<li> <code>error</code>: an error number in the input is
deprecated. </li>
</ul>
=> This is wrong</div>
</div>
</li>
<li>
<div class="refsection">
<div class="refsection">In Scilab 6:</div>
</div>
</li>
<ul>
<li>
<div class="refsection">
<div class="refsection">There is no longer any dedicated
specific error numbers for some frequent error messages:
numbers and messages are now independent. They are just 2
ways to tag an error.</div>
</div>
</li>
<li>
<div class="refsection">
<div class="refsection">As a consequence: error() can no
longer be called only with a number. Indeed, an explicit
message must now be provided, since now no message is
ascribed to a number<br>
</div>
</div>
</li>
</ul>
</ul>
<p>Is this right? Can we go with this description, or do you really
want to deprecate numbers and actually remove them in 6.1 or
later?</p>
<p>Thanks</p>
<p>Samuel<br>
<br>
</p>
</body>
</html>