bugGNU Octave - Bugs: bug #52015, warning name:...

 
 

bug #52015: warning name: Octave:possible-matlab-short-circuit-operator

Submitted by:  Ernst Reissner <ernstreissner>
Submitted on:  Thu 14 Sep 2017 09:21:33 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Documentation
Status: Wont FixAssigned 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 03:02:41 PM UTC, comment #1:

Changing warning IDs causes trouble for existing code that uses the IDs explicitly, so I'd rather not do that unless there is an overwhelming reason to do so.

The name might not be great, but it doesn't seem terrible to me. I think the reason I chose the word "possible" is because you can't tell that the operator will short-circuit just from the syntax and this warning-id was originally used in a warning that was issued during parsing, not evaluation.

John W. Eaton <jwe>
Project Administrator
Thu 14 Sep 2017 09:21:33 AM UTC, original submission:

The id of the warning
Octave:possible-matlab-short-circuit-operator
is misleading, to be more precise the 'possible'
I think
Octave:conversion-into-short-circuit-operator
would be a better choice as 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>

 

(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 jwe (Posted a comment)
  • -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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 14 Sep 2017 03:02:41 PM UTCjweStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Thu 14 Sep 2017 09:21:33 AM UTCernstreissnerCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1