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: Calling define within define-syntax


Per Bothner <per@bothner.com> writes:
> (I assume you know about the trace/untrace forms?)

Sure.  This was just a simple example to illustrate the question. 

If you're interested, my real code is:

    (define-syntax define-assertion
      (syntax-rules ()
        ((define-assertion (name arg ...) body ...)
         (define (name arg ... #!optional (message #f))
           (let ((res (begin body ...)))
             (or res
                 (begin
                   (junit.framework.Assert:fail (or message "Assertion"))
                   #f)))))))

Regards,
Chris Dean


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