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 Thu, 1 Feb 2007, Per Bothner wrote:
 (define (low-level-macro-helper all)
   (eval `(dosomethingcoolwith ,@all)))

 (define-syntax low-level-macro
   (syntax-rules ()
     ((_ arg1 arg2 ...) (def-class-helper (quote (arg1 arg2 ...))))))

I don't know if it is safe, but I'm 99% certain it's the wrong approach. You want to work *with* the compiler, not *against* it.

But will I stumble upon the colon problem using this approach?



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