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


Kjetil S. Matheussen wrote:
Okay, I figured it might have been easy since it knows that foobar is a macro.

Yes, but the relationship to foo is harder to discern. Besides, it's a more general problem:

(define (foo) (foobar))

(define-syntax foobar ...)

In any case, define-macro is *strongly* deprecated.  Don't use it.
I should probably have it cause a warning ...


Is defmacro okay?

No. defmacro and define-macro are basically the same. They're kludges. You can use them if you want, but don't don't complain if something doesn't work.

Use define-syntax, optionally with syntax-case.

This may be helpful:
http://sourceware.org/ml/kawa/2006-q4/msg00020.html
--
	--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]