<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 17/02/2016 18:22, Samuel Gougeon a
écrit :<br>
</div>
<blockquote cite="mid:56C4AC43.6040408@free.fr" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<font face="Arial">Hello,<br>
<br>
Scilab 6.0 is being to introduce a very specific extraction
syntax for cells. <br>
Is it really worthwhile to do so, when everywhere else Scilab
6.0 tries to remove features that are too specific, and works to
improve consistency?<br>
</font></blockquote>
<br>
<font face="Arial"><b>What about insertion?</b><b><br>
</b><br>
</font><tt>--> C1 = { %pi %e ; %i %z};</tt><tt><br>
</tt><tt><br>
</tt><tt>--> C1(1) = 3</tt><tt><br>
</tt><tt><br>
</tt><tt>Wrong insertion: A Cell expected: use {...} instead of
(...).</tt><tt><br>
<br>
</tt><font color="#009900">Why isn't this simple case silently
handled, and the RHS scalar automatically wrapped in a cell to be
accepted?<br>
</font><tt><br>
</tt><br>
<tt><tt>--> C1([1 3]) = {3,"abc"}</tt><tt><br>
</tt><tt> C1 = </tt><tt><br>
</tt><tt><br>
</tt><tt> [1x1 constant] [1x1 string ]</tt><tt><br>
</tt><tt> [1x1 constant] [1x1 polynomial]</tt><tt><br>
</tt><tt><br>
</tt></tt><br>
<tt><font face="Arial"><font color="#009900">OK. So here, no need to
use C1{..} to make the assignment<tt><font face="Arial"> </font></tt>distributive.
Perfect<tt><font face="Arial">!</font></tt><br>
</font><tt><br>
</tt>
</font>--> C1([1 3]) = list(3,"abc")</tt><tt><br>
</tt><tt><br>
</tt><tt>Wrong insertion: A Cell expected: use {...} instead of
(...).</tt><tt><br>
</tt><tt><br>
</tt><font face="Arial"><font color="#009900">This should be as well
accepted, as soon as length(RHS list) == length of the LHS
vector of indices.<br>
</font><tt><br>
</tt></font><br>
Could anyone find and show any case for which the {} specific
insertion or extraction syntax would be worthwhile?<br>
<br>
BR<br>
Samuel Gougeon<br>
<br>
</body>
</html>