bugGNU Octave - Bugs: bug #29486, isvarname("name")...

 
 

bug #29486: isvarname("name") ignores keyword status of "name"

Submitter:  Judd Storrs <judd>
Submitted:  Thu 08 Apr 2010 11:03:23 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 09 Apr 2010 01:59:23 PM UTC, comment #1: 

I applied this changeset.

Thanks.

John W. Eaton <jwe>
Group administrator
Thu 08 Apr 2010 11:03:23 PM UTC, original submission:  

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.

Judd Storrs <judd>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #20164:  isvarname.changeset added by judd (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by judd (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-04-09 jwe StatusNone Fixed
        Open/ClosedOpen Closed
    2010-04-08 judd Attached File- Added isvarname.changeset, #20164

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code