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: Fri, 09 Apr 2010 22:13:03 +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 #13, bug #29476 (project octave):

I don't really want to invent new syntax for this feature.  I would just like
to think about whether there is a way that we can make the compatibility
freaks happy without doing too much damage (i.e., I don't want to eliminate
the extended keywords completely).

There is no problem with parsing structure elements now.  You should already
be able to write x.foo = 42, for example.

The only case I can think of where you might need to access a symbol that has
the same name as one of the extra Octave keywords is if you need to call a
function or a global variable that is defined with the keyword name.  For
functions, we already have feval.  I guess we would need some way to get a
(global) variable value via a function.  That should be simple enough to do.

Or, maybe it is not needed at all, since if you started Octave with
--traditional to allow this feature to work in .m files at all, then maybe you
should not be able to use the extended set of Octave keywords at the command
line either?  And if you need to write a function that must access global
variables or functions that have keyword names, then you can just write it
using the --traditional mode.


    _______________________________________________________

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]