This is the mail archive of the kawa@sourceware.org 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: Strange error output for undefined macros inside macros


On Fri, 2 Feb 2007, Kjetil Svalastog Matheussen wrote:

> On Fri, 2 Feb 2007, Per Bothner wrote:
> 
> > Kjetil Svalastog Matheussen wrote:
> >  > For example, can syntax-case macros
> > > change variable names?
> > 
> > Yes.
> > 
> > > Can I do [omitted] with syntax-case macros?
> > 
> > Yes.
> > 
> 
> Great!
> I just translated my so far largest macro by only looking at your examples 
> below. Thank you.
> 

By the way, there seems to be a bug in the syntax-case macro you posted. 
It should probably look like this:

(define-syntax define-syntax-case
   (syntax-rules ()
     ((define-syntax-case name literals . parts)
      (define-syntax name
        (lambda (form)
	  (syntax-case form literals . parts))))))




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