Re: export macro symbol with @ failed

2011-07-01 Thread Andy Wingo
Hi nalingarut, On Mon 13 Jun 2011 05:54, nalaginrut writes: > 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 As Ian said it's expected. It would work lik

Re: export macro symbol with @ failed

2011-06-13 Thread nalaginrut
> 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. > Well, thanks!

Re: export macro symbol with @ failed

2011-06-13 Thread Ian Price
nalaginrut 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)

export macro symbol with @ failed

2011-06-12 Thread nalaginrut
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: S