[bug #68101] Missed error with missing tilde in function output

Fernando <[email protected]>
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #10, bug #68101 (group octave):


>> [a, b] = deal (1, 2)
a =
     1
b =
     2
>> [, a, b] = deal (1, 2)
a =
     1
b =
     2
>> [, , a, b] = deal (1, 2)
 [, , a, b] = deal (1, 2)
    ↑
Invalid expression. When calling a function or indexing a variable, use
parentheses.
Otherwise, check for mismatched delimiters.
 

>> [a, b, ] = deal (1, 2)

a =
     1
b =
     2
>> [a, b, , ] = deal (1, 2)
  [a, b, , ] = deal (1, 2)
         ↑
Invalid expression. When calling a function or indexing a variable, use
parentheses.
Otherwise, check for mismatched delimiters.
 

>> [, 1, 2]
ans =
     1     2
>> [, , 1, 2]
  [, , 1, 2]
     ↑
Invalid expression. When calling a function or indexing a variable, use
parentheses.
Otherwise, check for mismatched delimiters.
 

>> [1, 2, ]
ans =
     1     2
>> [1, 2, , ]
  [1, 2, , ]
         ↑
Invalid expression. When calling a function or indexing a variable, use
parentheses.
Otherwise, check for mismatched delimiters.
 

>> [1, , 2]
  [1, , 2]
      ↑
Invalid expression. When calling a function or indexing a variable, use
parentheses.
Otherwise, check for mismatched delimiters.
 

>> [1; ; 2]
ans =
     1
     2
>> [1, ; , 2]
ans =
     1
     2
>> [1, ; , ; 2]
ans =
     1
     2
>> [1, ; , ; , 2]
ans =
     1
     2
>> [1; , , ; 2]

  [1; , , ; 2]
        ↑
Invalid expression. When calling a function or indexing a variable, use
parentheses.
Otherwise, check for mismatched delimiters.


Everything is correct except when there are two commas next to one another.
It's exactly the same as in Octave.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68101>

_______________________________________________
Mensaje enviado vía Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaaSQYAAKCRCqLAuaBUf3
Tn0GAQD4hS5KIXx1uyfnMVElDiTJl5ZTArFycMcnq0veDQemDQD/VHWakwq3R1Bo
As/mqsDuS3bv/bISA3RMJ6zHXSyqGQ8=
=IHfB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.