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

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

[Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords ag


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #29476] Parser incompatibility for keywords against Matlab implementation, infinite loop
Date: Thu, 08 Apr 2010 17:40:44 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100308 Iceweasel/3.5.8 (like Firefox/3.5.8)

Follow-up Comment #1, bug #29476 (project octave):

In Octave, "do" is a keyword (for the do until loop syntax) so you can't
create a function or function handle using that name.

Although I am able to reproduce the hanging behavior with Octave 3.3.51, a
copy of Octave built from the development sources returns immediately with a
syntax error.

"The problem is usage of keyword 'do' as function name. As long as it is
unambiguous, and in the example above IT IS, the keyword was accepted as
function name and allowed in the reference to be assigned."

I don't understand what you mean by "the keyword was accepted as function
name".  In what instance does Octave allow a function to have the same name as
a keyword?


    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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