[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: module system
From: |
Dr. Peter Ivanyi |
Subject: |
Re: module system |
Date: |
Thu, 15 May 2003 15:48:10 +0100 |
address@hidden wrote:
> Well, my approach would be like this:
>
> ;; --------------------- File: mod-comp.scm
> (use-modules (ice-9 syncase))
>
> (define-syntax module
> (syntax-rules ()
> ((module (a))
> (define-module (a)))
> ((module (a ...))
> (define-module (a ...)))))
Wow! Thank you. That works. However this a third way to create
macros. :-) As I understand defmacro is different from all others.
(The documentation says this.) But why define-macro is different from
define-syntax ? Shouldn't one expand to the other?
Thanks anyway.
Peter Ivanyi
- module system, Dr. Peter Ivanyi, 2003/05/15
- Re: module system,
Dr. Peter Ivanyi <=