[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: export macro symbol with @ failed
From: |
Ian Price |
Subject: |
Re: export macro symbol with @ failed |
Date: |
Mon, 13 Jun 2011 11:53:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
nalaginrut <address@hidden> writes:
> hi all, I got a problem with @.
> It's OK when I export procedure with @:
> ==============
> (define aaa (@ (rnrs) make-bytevector))
> ==============
>
> but it'd failed if exported a macro.
> ============================
> scheme@(guile-user)> (define aaa (@ (rnrs) unless))
> While compiling expression:
> ERROR: Syntax error:
> unknown location: source expression failed to match any pattern in form
> unless
> ============================
>
> is it a bug?
I don't think so. The second form would be equivalent to (define aaa
unless) if unless was imported by the module, and this is also an error
because unless is not an identifier syntax.
If I were you I'd (use-modules (rnrs control)) or (import (rnrs
control)) instead.
--
Ian Price
"There are only two hard problems in Computer Science: cache invalidation
and naming things." - Phil Karlton