unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#14449: Guile 2.1 and macro nesting
@ 2013-05-23 13:50 Sanel Zukan
  2013-10-03  9:11 ` Ian Price
  0 siblings, 1 reply; 2+ messages in thread
From: Sanel Zukan @ 2013-05-23 13:50 UTC (permalink / raw)
  To: 14449

Hi,

Looks like macro nesting (using define-macro) inside guile 2.x is no
longer possible. Here is example:

-----------------------------------------
scheme@(guile-user)>
(define-macro (def-caller abbrev proc)
    `(define-macro (,abbrev var expr)
       `(,',proc
         (lambda (,var) ,expr))))

scheme@(guile-user)> (def-caller katch call/cc)
scheme@(guile-user)> (macroexpand '(katch 3 (+ 1 1)))
ice-9/psyntax.scm:2146:53: In procedure #<procedure 282adc0 (args e1
e2)>:
ice-9/psyntax.scm:2146:53: Syntax error:
unknown location: lambda: invalid argument list in subform (3) of (3)

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to
continue.
-----------------------------------------

However, doing the same in guile 1.x and/or any other Scheme
implementation where define-macro is native, it works without
problems.

Best,
Sanel





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-03  9:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-23 13:50 bug#14449: Guile 2.1 and macro nesting Sanel Zukan
2013-10-03  9:11 ` Ian Price

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).