[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defmacro* and defmacro*-public in master
From: |
Andy Wingo |
Subject: |
Re: defmacro* and defmacro*-public in master |
Date: |
Mon, 28 Dec 2009 12:05:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
Hi Tristan,
On Tue 15 Dec 2009 18:15, Tristan Colgate <address@hidden> writes:
> Are defmacro* and friends supposed to work in current master?
Yes, they are. But indeed, they weren't working. Thanks for the report,
I have pushed a fix to current master.
> Also, out of interest, is there such a thing as define*-syntax?
No, there is not; though you could build one.
> Is it possible to have docstrings for macros?
Yes, macros can have docstrings. For defmacros, docstrings go in the
same place they would go if it were a function definition.
For syntax-case expressions, the docstring goes with the syntax
transformer:
(define-syntax foo
(lambda (x)
"docs"
(syntax-case x ....)))
Syntax-rules macros currently can't have any docs. We could change that,
but as it would be a nonstandard extension anyway, you're probably
better off using syntax-case.
> doing something like (help macroname) seems to break anyway
Ah, here you have found another bug, I think. I was going to add a
hack-around to (ice-9 documentation) to fix this, but it's probably
better to attack the root, in macros.c.
Cheers,
Andy
--
http://wingolog.org/