[Scilab-Dev] Specific errors numbers: true removal becoming a unique flag, or ghosty ones?
Samuel Gougeon
sgougeon at free.fr
Thu Feb 1 16:12:57 CET 2018
Dear ESI-Scilab devs,
Errors numbers are announced as removed in Scilab 6. Yet, some related
features are still active, for instance:
--> error(123)
error: Wrong type for input argument #1: string expected. // OK
--> error(123, "message") // Is this syntax intended to be kept?
message
--> [t, n] = lasterror()
n =
123.
t =
message
--> execstr("error(456, ""message"")", "errcatch")
ans =
456.
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.
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()?
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..
Looking forward to reading you
Best regards
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20180201/a58863ef/attachment.htm>
More information about the dev
mailing list