This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: literals in syntax-rules


Bruce Lewis wrote:

In versions of Kawa prior to 1.7, the following macro would always
return "worked" when given one argument:

(define-syntax t1
  (syntax-rules (literal)
    ((t1 literal)
     "worked")
    ((t1 a)
     (t1 literal))))

Now there's a stack overflow. I think the prior behavior was correct.

I checked in a fix, as well as your testcase. -- --Per Bothner per@bothner.com http://per.bothner.com/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]