Le 17/02/2016 18:22, Samuel Gougeon a écrit :
Hello,
Scilab 6.0 is being to introduce a very specific extraction syntax for
cells.
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?
*What about insertion?**
*
--> C1 = { %pi %e ; %i %z};
--> C1(1) = 3
Wrong insertion: A Cell expected: use {...} instead of (...).
Why isn't this simple case silently handled, and the RHS scalar
automatically wrapped in a cell to be accepted?
--> C1([1 3]) = {3,"abc"}
C1 =
[1x1 constant] [1x1 string ]
[1x1 constant] [1x1 polynomial]
OK. So here, no need to use C1{..} to make the assignmentdistributive.
Perfect!
--> C1([1 3]) = list(3,"abc")
Wrong insertion: A Cell expected: use {...} instead of (...).
This should be as well accepted, as soon as length(RHS list) == length
of the LHS vector of indices.
Could anyone find and show any case for which the {} specific insertion
or extraction syntax would be worthwhile?
BR
Samuel Gougeon
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users