octave-bug-tracker
[Top][All Lists]
Advanced

[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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]