bugKawa - Bugs: bug #28860, Strings as identifiers

 
 

bug #28860: Strings as identifiers

Submitted by:  Helmut Eller <ellerh>
Submitted on:  Wed 10 Feb 2010 09:22:58 PM UTC  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 11 Feb 2010 01:29:04 AM UTC, comment #1:

Thanks for the report. This was left-over crud from when Scheme symbols were implemented using Java strings. I checked in a fix. I also made a similar fix for 'define'.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Wed 10 Feb 2010 09:22:58 PM UTC, original submission:

This code:

(let-syntax ((foo
(syntax-rules ()
((_ x y)
(let ((x y))
(list x x))))))
(foo "a" 1))

evaluates to ("a" "a").

I think it should be a syntax error instead.

Similarly: (let (("x" 1)) "x") => "x"
should also be a syntax error.

That's with Kawa 1.9.90 (revision 6489M)

Helmut Eller <ellerh>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by ellerh (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 logged-in users 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
    Thu 11 Feb 2010 01:29:04 AM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1