|
| From: | Mike Miller |
| Subject: | [Octave-bug-tracker] [bug #52016] '&' or '|' used in until condition should warn about short-circuiting |
| Date: | Fri, 15 Sep 2017 13:45:29 -0400 (EDT) |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #5, bug #52016 (project octave):
This is a little more complicated than adding a warning in the right place.
The parser will have to mark the conditional expression in an 'until' with a
new flag, as a loop condition expression that is _not braindead_, just so the
evaluator can see if the & or | operators are used in the conditional
expression and issue a new warning message. Something like "warning:
Matlab-style short-circuit operation not performed for operator |"?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52016>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |