[Scilab-users] Comments in a multiline literal array definition

Samuel Gougeon sgougeon at free.fr
Sat Apr 14 13:44:21 CEST 2018


Hello,

Before possibly posting a bug report, i would like to know if the 
following change from Scilab 5.5.2 to 6.0.0 is an expected restriction, 
or an unexpected one -- so a bug.

Scilab 5.5.2 accepts the following:

-->a = [
-->1  // line #1
-->2, // line #2
-->]
  a  =
     1.
     2.

while Scilab 6.0.0 does not:

--> a = [
   > 1 // line #1
   > 2, // line #2
   > ]
2, // line #2
              ^
Error: syntax error, unexpected line comment

Please note that the appended comment passes if it does not follow a comma.
And that an error is generated even if the last row does not end with a 
comma.

--> a = [
   > 1, // line #1
   > 2]
1, // line #1
              ^
Error: syntax error, unexpected line comment

Regards
Samuel



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180414/3f337cfd/attachment.htm>


More information about the users mailing list