bugGNU Octave - Bugs: bug #63501, Problem with &&= and ||=

 
 

bug #63501: Problem with &&= and ||=

Submitter:  None
Submitted:  Sat 10 Dec 2022 04:05:20 PM UTC
 
Category:  Octave Function Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Sat 10 Dec 2022 08:46:16 PM UTC, comment #1: 

There is no support for using short-circuit operators (|| or &&) in an in-place assignment (OPERATOR=) form.  Accordingly, I've marked this as a feature request.

I'm not sure there will be much desire to change functionality here.  One, there is no Matlab incompatibility because Matlab does not support the OP= syntax.  Two, there is a simple workaround of "A = A OP B".

Rik <rik5>
Project Administrator
Sat 10 Dec 2022 04:05:20 PM UTC, original submission:  

"a = a & b" works. "a &= b" also works.

"a = a && b" works.  "a &&= b" gives error.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.

     

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-10 rik5 Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
        Item GroupUnexpected Error or Warning Feature Request
        Release7.2.0 dev
        Operating SystemMicrosoft Windows Any

    Back to the top

    Powered by Savane 3.10