[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57255] "+=" not parsed correctly in anonymous
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #57255] "+=" not parsed correctly in anonymous function within cell array context |
Date: |
Tue, 19 Nov 2019 16:55:22 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #3, bug #57255 (project octave):
In Matlab, assignment is a statemnet, not an expression, and only expressions
are allowed in anonymous functions.
Although the error message is not as informative as it could be, we already
disallow assignment expressions in anonymous functions. It seems more of an
oversight that the parser accepts expressions that use compound assignment and
increment/decremnent operators.
Sorry, but I don't think we should attempt to do anything more here except
also generate errors for increment/decrement and compound assignment operators
and improve the error message.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57255>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57255] += operator behaves differently to manual increment and ++ operator, Tasos Papastylianou, 2019/11/18
- [Octave-bug-tracker] [bug #57255] += operator behaves differently to manual increment and ++ operator, Mike Miller, 2019/11/18
- [Octave-bug-tracker] [bug #57255] "+=" not parsed correctly in anonymous function within cell array context, Rik, 2019/11/19
- [Octave-bug-tracker] [bug #57255] "+=" not parsed correctly in anonymous function within cell array context,
John W. Eaton <=
- [Octave-bug-tracker] [bug #57255] "+=" not parsed correctly in anonymous function within cell array context, Rik, 2019/11/19
- [Octave-bug-tracker] [bug #57255] "+=" in anonymous function within cell array context should emit an error, Rik, 2019/11/19
- [Octave-bug-tracker] [bug #57255] "+=" in anonymous function within cell array context should emit an error, John W. Eaton, 2019/11/20
- [Octave-bug-tracker] [bug #57255] "+=" in anonymous function within cell array context should emit an error, Rik, 2019/11/21
- [Octave-bug-tracker] [bug #57255] "+=" in anonymous function within cell array context should emit an error, John W. Eaton, 2019/11/21
- [Octave-bug-tracker] [bug #57255] "+=" in anonymous function within cell array context should emit an error, Rik, 2019/11/21
- [Octave-bug-tracker] [bug #57255] "+=" in anonymous function within cell array context should emit an error, John W. Eaton, 2019/11/22
- [Octave-bug-tracker] [bug #57255] "+=" in anonymous function within cell array context should emit an error, John W. Eaton, 2019/11/22
- [Octave-bug-tracker] [bug #57255] "+=" in anonymous function within cell array context should emit an error, Rik, 2019/11/22
- [Octave-bug-tracker] [bug #57255] "+=" in anonymous function within cell array context should emit an error, John W. Eaton, 2019/11/22