From: Damien Mattei <damien.mattei@gmail.com>
To: kawa mailing list <kawa@sourceware.org>
Subject: Re: macro definition in module
Date: Thu, 12 Oct 2023 23:41:25 +0200 [thread overview]
Message-ID: <CADEOadfU-4g=A5Jdkpi6ALcwkifyLntCGFB7Y88Zq+hAcQEwqA@mail.gmail.com> (raw)
In-Reply-To: <CADEOadcpzB3fG_0CDpM8psCbuAG25NEEsQ-JNyGtGGm4A1SM7Q@mail.gmail.com>
solution:
(module-name overload2)
(export foo bar)
(define (foo) '())
(define-syntax bar
(syntax-rules ()
((_ proc) '())))
having some example in this documentation
https://www.gnu.org/software/kawa/Module-classes.html would make Kawa
more easy to use;
On Thu, Oct 12, 2023 at 11:19 PM Damien Mattei <damien.mattei@gmail.com> wrote:
>
> i know how to define a function in module,example
>
> ;; file ModuleName.scm
>
> (define-simple-class ModuleName ()
>
> ((string-null? str)
> (string=? str "")))
>
> but this syntax can help me to define a macro in module, is it possible?
prev parent reply other threads:[~2023-10-12 21:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-12 21:19 Damien Mattei
2023-10-12 21:33 ` Per Bothner
2023-10-12 21:41 ` Damien Mattei [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADEOadfU-4g=A5Jdkpi6ALcwkifyLntCGFB7Y88Zq+hAcQEwqA@mail.gmail.com' \
--to=damien.mattei@gmail.com \
--cc=kawa@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).