bugKawa - Bugs: bug #26993, String literals in syntax-rules...

 
 

bug #26993: String literals in syntax-rules don't match

Submitted by:  Helmut Eller <ellerh>
Submitted on:  Thu 09 Jul 2009 04:15:08 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.

 

Sat 11 Jul 2009 05:42:51 PM UTC, comment #1:

Thanks! I fixed this. I alos checked in yur test-case.

I actually have two fixes, either of which will fix it:
(1) Test syntax literals using equality, not identity.
(2) Intern string literals.

I've checked both of them in.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Thu 09 Jul 2009 04:15:08 PM UTC, original submission:

Compiling this code

(define-syntax foo
(syntax-rules ()
((foo "foo") 'ok)))

(display (foo "foo"))

prints:

(compiling x.scm to x)
x.scm:6:10: no matching syntax-rule for foo

I'm using: Kawa 1.9.3 (revision 6287)

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
    Sat 11 Jul 2009 05:42:51 PM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1