|
| From: | Rik |
| Subject: | [Octave-bug-tracker] [bug #54465] Short Circuit Operators not working with negation operator |
| Date: | Wed, 8 Aug 2018 16:46:36 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Update of bug #54465 (project octave):
Category: None => Interpreter
Status: Confirmed => Patch Reviewed
_______________________________________________________
Follow-up Comment #4:
The patch seems to work. Here are two tests
%!test
%! x = 0;
%! if (! 0 || (x = 1))
%! endif
%! assert (x == 0);
%!test
%! x = 0;
%! if (! 0 | (x = 1))
%! endif
%! assert (x == 0);
Also attached as a file. They should probably go in test/parser.tst and have
a bug number associated.
(file #44743)
_______________________________________________________
Additional Item Attachment:
File name: tst_sc2.m Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54465>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |