octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56032] Weird "if" parsing behavior ignores st


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #56032] Weird "if" parsing behavior ignores stuff past first expression in some cases
Date: Sat, 30 Mar 2019 16:26:03 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36

Follow-up Comment #5, bug #56032 (project octave):

I believe this is Matlab compatible behavior, the following works the same in
Matlab as in Octave


>> if 0 disp('yup'), end
>> if 1 disp('yup'), end
yup


The comma is required in Matlab, but the "if condition expression" on a single
line behaves exactly the same, a line break is not significant.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]