<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 28/02/2020 à 22:52, Federico Miyara
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:5ff7d223-3d0b-33c9-d125-86670f06e513@fceia.unr.edu.ar">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<br>
<font face="Courier New">Dear all,<br>
<br>
</font>The documentation of rationals (<a
class="moz-txt-link-freetext"
href="https://help.scilab.org/docs/6.1.0/en_US/rational.html"
moz-do-not-send="true">https://help.scilab.org/docs/6.1.0/en_US/rational.html</a>)
mentions<br>
<br>
<font face="Courier New"> R = tlist(['r','num','den','dt'], Num,
Den,[])<br>
<br>
However, if one attempts to create a rational with this syntax
the result is an error message. Is it because the first argument
is sort of protected and cannot be redefined?<br>
<br>
If this is the case it would be great if it were clarified in
the documentation to avoid confusion.<br>
</font></blockquote>
<p><br>
</p>
<p>You are right, Federico. The message should be <br>
</p>
<ul>
<li>clearer, something like "The reserved typeof 'r' can't be used
here. Please use rlist()."</li>
<li>extended to other reserved native overloading type codes
or/and typeof :<br>
<a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.1.0/en_US/overloading.html">https://help.scilab.org/docs/6.1.0/en_US/overloading.html</a><br>
<a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.1.0/en_US/typeof.html">https://help.scilab.org/docs/6.1.0/en_US/typeof.html</a></li>
</ul>
<p>But this must be done with care, because some internal objects
like state-space systems or Xcos objects, or others, use mlist()
or tlist() as we do for true custom external typeof.<br>
Such a protection is the aim of the quite old but still alive <a
moz-do-not-send="true"
href="http://bugzilla.scilab.org/show_bug.cgi?id=2307">report
#2307</a>.<br>
<br>
Regards<br>
Samuel</p>
<br>
</body>
</html>