[Top][All Lists]

[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: Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8


                 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



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



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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