|
6.2.4 Usage of commas
In SINGULAR, a comma separates list elements and the value of a comma
expression is a list.
Hence, commas can not be used to combine several expressions into
a single expression. For example, instead of writing
for (i=1, j=5; i<5 || j<10; i++, j++) {…} // WRONG!!!!!!
one has to write
for (i,j = 1,5; i<5 || j<10; i++, j++) {…}
|