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

 
 

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

Submitter:  Helmut Eller <ellerh>
Submitted:  Thu 09 Jul 2009 04:15:08 PM UTC
   
 
Category:  Scheme language Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  bothner
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bothner (Posted a comment)
  • -email is unavailable- added by ellerh (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 logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-07-11 bothner StatusNone Fixed
        Assigned toNone bothner
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code