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: Andrew Janke
Subject: [Octave-bug-tracker] [bug #56032] Weird "if" parsing behavior ignores stuff past first expression in some cases
Date: Sat, 30 Mar 2019 06:08:43 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36

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

Simpler repro:


>> if 1 > 3 klsdjfkldsjfkls; else fprintf('nope\n') end
nope


Maybe the "if" stops executing its conditional as soon as it hits a full
expression, and treats stuff following that as part of the code to execute if
the conditional is true?

    _______________________________________________________

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]