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

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

[Octave-bug-tracker] [bug #29486] isvarname("name") ignores keyword stat


From: Judd Storrs
Subject: [Octave-bug-tracker] [bug #29486] isvarname("name") ignores keyword status of "name"
Date: Thu, 08 Apr 2010 23:03:25 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8

URL:
  <http://savannah.gnu.org/bugs/?29486>

                 Summary: isvarname("name") ignores keyword status of "name"
                 Project: GNU Octave
            Submitted by: judd
            Submitted on: Thu 08 Apr 2010 11:03:23 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Currently, isvarname("name") only checks the general validity of the "name"
as a variable but does not specifically check to ensure the "name" is not a
keyword. Keywords are not valid variable names. Matlab is documented to
returns false for keywords and I verified this in R2007a.

The attached changeset compares "name" to the keyword list. The patch does
not cause additional test failures. The behavior of Matlab and octave with the
patch are not identical for all input because the keyword lists differ.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 08 Apr 2010 11:03:23 PM GMT  Name: isvarname.changeset  Size: 1kB  
By: judd

<http://savannah.gnu.org/bugs/download.php?file_id=20164>

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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