guile-user
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]