Syntax struct(dims, fieldname1, list(values..), fieldname2,..) expected
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
In Scilab 6.0, structures arrays have been declared as "native", no longer built as mlists of typeof "st".
The .dims field of former "st" mlists is replaced with size(structArray) in read mode.
Since it no longer exists, it can no longer be assigned.
Now, contrarily to the makecell() function that expects the dims of the cells array as first input argument,
the struct() function does not accept dims. Example:
--> struct([2 2],"r",list(1,2,3,4))
struct: Wrong number of input argument(s): An even number is expected.
See also https://help.scilab.org/docs/6.0.0/en_US/struct.html
--------------------------------------------------------------------------------------------------------------------------
=> Therefore, there is no longer any way to declare and initialize from scratch a structure array with multiple components.
--------------------------------------------------------------------------------------------------------------------------
This REGRESSION prevents fixing the bug 15260 completely, for the struct part.
ERROR LOG:
----------
none.
HOW TO REPRODUCE THE BUG:
-------------------------
// The bug is that we can no longer do things.
// So just sit and stay on your chair, without too early browsing the web to get information about other Scientific languages :(
OTHER INFORMATION:
------------------
Bug found when fixing the bug 15260