Specific errors numbers: true removal becoming a unique flag, or ghosty ones?
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.
--> error(123, "message") // Is this syntax
intended to be kept? message
--> [t, n] = lasterror() n = 123.
t = message
--> execstr("error(456, ""message"")", "errcatch") ans =
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
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