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

Rik <[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 #12, bug #68101 (group octave):

My personal opinion would be to change Octave's parser to emit an
error/warning for

[,a, b] = ...

While a Matlab user could write that code, they could just as easily write the
much clearer version

[a, b] = ...

This latter code will run under either Matlab or Octave so there is no issue
of compatibility and forcing a user to pick an interpreter for their scripts.

First, on a practical note, I doubt this construct is being used intentionally
so I think the number of scripts that would require modifying is very small.

But, if there was still anxiety about making this change then I would have the
parser recognize this feature and issue a warning with a specific warning ID.
For Matlab users who start *octave* with the *--traditional* argument this
warning ID could be disabled.  For ordinary Octave users the warning would be
printed, and could even be made an error with *warning ('error', ID)* in a
configuration file for those who really reject this syntax.



    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaa/M4AAKCRCqLAuaBUf3
TubkAP9UpRQP6AjipDohonz4NLABz/LDSsK7gVtxXfZtjc4P/AD/fREaYhemE7DS
+2PCw1uT1OL4l0Lvf5yD81rNX05H2QQ=
=9taB
-----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.