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

 
 

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

Submitted by:  Judd Storrs <judd>
Submitted on:  Thu 08 Apr 2010 11:03:23 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

I applied this changeset.

Thanks.

John W. Eaton <jwe>
Project 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 File(s):
   
   
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
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by judd (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 09 Apr 2010 01:59:23 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 08 Apr 2010 11:03:23 PM UTCjuddAttached File-=>Added isvarname.changeset, #20164

    Back to the top


    Powered by Savane 3.1-cleanup1