[bug #68529] A if ... elseif syntax error not flagged.

"Dmitri A. Sergatskov" <[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 #68529 (group octave):

Previously the script:

$ cat t_elseif.m 
if (true)
  disp ("script completed")
elseif
  error ("this is parsed as the elseif condition by Octave 11")
endif

worked:
+verbatim=
octave:1> t_elseif
script completed
octave:2> ver
----------------------------------------------------------------------
GNU Octave Version: 11.3.0 (hg id: 4e62258d6e20)
...
-verbatim-

Now it errors out:

octave:1> t_elseif
error: syntax error near line 4, column 0 in file
/home/dmitri/scratch/t_elseif.m

>>> elseif
          ^
octave:2> ver
----------------------------------------------------------------------
GNU Octave Version: 12.0.0 (hg id: a1607403a1d9+)
...


Not sure what to do about it (I think the script is bad, so error out looks OK
to me), In particular that broke `datatypes` package.

Dmitri.
-- 




    _______________________________________________________

Reply to this item at:

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

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

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCanrH8QAKCRCqLAuaBUf3
TgFtAP48uht/qCHSReh7yyGKIm8J/2lMkfoI3TwldplVBmiV/gEAslYYewYyY35l
S83NNs5l0gqcBT3ZqEXrlfw3BUKQGAQ=
=q40O
-----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.