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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46459] Interpreter allows number assignment t


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #46459] Interpreter allows number assignment to "end" key word within array brackets
Date: Fri, 26 Feb 2016 16:10:46 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0

Follow-up Comment #9, bug #46459 (project octave):

Ah, there is a bit of confusion there.  Using "end" as an object index is not
the same as "end" being a keyword to mark the end of a block of code (like a
for loop) because in that context it is converted into a function call.  We
still need to prevent assignment to "end" in that context, but it can't be
done at that point in the lexer.  It needs to be done when the assignment
statement is constructed.  I'll see if I can fix this one.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46459>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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