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]

Order of syntax macros


Is it legal to put the definition of a macro after its first use?  i.e.,
is this legal:

    (define (foo a) (inc-macro a))

    (define-syntax inc-macro 
      (syntax-rules ()
        ((inc-macro x) (+ x 1))))

Regards,
Chris Dean


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