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

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

[Octave-bug-tracker] [bug #38704] Inconsistent short-circuit behavior


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #38704] Inconsistent short-circuit behavior
Date: Wed, 10 Apr 2013 19:55:56 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20100101 Firefox/10.0.11 Iceweasel/10.0.11

Follow-up Comment #2, bug #38704 (project octave):

Hmm, it works for me with 3.6.3:


octave:1> do_braindead_shortcircuit_evaluation (1)
octave:2> util = ~0, if util | [](:,1), 1, end
warning: possible Matlab-style short-circuit operator at line 2, column 20
util =  1
ans =  1
octave:3> if ~0 | [](:,1), 1, end
warning: possible Matlab-style short-circuit operator at line 3, column 7
ans =  1


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38704>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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