bugGNU Octave - Bugs: bug #51999, missing:...

 
 

bug #51999: missing: do_braindead_shortcircuit_evaluation

Submitted by:  Ernst Reissner <ernstreissner>
Submitted on:  Tue 12 Sep 2017 09:51:21 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: ernstreissnerOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 14 Sep 2017 09:13:56 AM UTC, comment #5:

I see: my last comment should be in a separate bugreport.

Ernst Reissner <ernstreissner>
Thu 14 Sep 2017 08:47:04 AM UTC, comment #4:

Also the warning is called
Octave:possible-matlab-short-circuit-operator
and now one should call it
Octave:conversion-into-short-circuit-operator
The warnings are
warning: Matlab-style short-circuit operation performed for operator |

and

warning: Matlab-style short-circuit operation performed for operator &

Ernst Reissner <ernstreissner>
Thu 14 Sep 2017 01:30:38 AM UTC, comment #3:

Still in the manual Section 8.5.2 I read:

MATLAB has special behavior that allows the operators ‘&’ and ‘|’ to short-circuit when used in the truth expression for if and while statements. Octave also behaves the same way by default, though the use of the ‘&’ and ‘|’ operators in this way is strongly discouraged. Instead, you should use the ‘&&’ and ‘||’ operators that always have short-circuit behavior.

I think, 'by default' is deprecated: this is always the case.

Ernst Reissner <ernstreissner>
Wed 13 Sep 2017 11:55:56 PM UTC, comment #2:

Kai - yes, the do_braindead_shortcircuit_evaluation setting became enabled by default in Octave 4.0 and removed completely in Octave 4.4, it can't be turned off now. I removed the reference to this function completely on the default branch

https://hg.savannah.gnu.org/hgweb/octave/rev/18efaf716530

Mike Miller <mtmiller>
Project Administrator
Tue 12 Sep 2017 09:59:54 PM UTC, comment #1:

The actual documentation text is in warning_ids.m. As far as I know, do_breadead_shortcircuit_evaluation has been removed entirely. I'm adding jwe to the CC list so he can confirm that. The warning ID still exists though.

Rik <rik5>
Project Administrator
Tue 12 Sep 2017 09:51:21 AM UTC, original submission:

The aforementioned option described in the manual p. 228
but not in the index seems not to exist.

Ernst Reissner <ernstreissner>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by siko1056 (Updated the item)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by rik5
  • -unavailable- added by ernstreissner (Submitted the item)
  • -unavailable- added by ernstreissner
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 13 Sep 2017 11:55:56 PM UTCmtmillerStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Wed 13 Sep 2017 12:52:42 PM UTCsiko1056StatusNone=>Need Info
    Tue 12 Sep 2017 09:59:54 PM UTCrik5Carbon-Copy-=>Added jwe
    Tue 12 Sep 2017 09:51:21 AM UTCernstreissnerCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1