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

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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>
Group 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

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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 group members can vote.

     

    History

    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.16-11ef.
    Corresponding source code