* Re: Returned mail: see transcript for details
[not found] <200212262346.gBQNkaNc029823@smtp.nada.kth.se>
@ 2002-12-26 23:50 ` Roland Orre
2002-12-27 0:02 ` Found a bug in guile 1.6.0 Roland Orre
0 siblings, 1 reply; 2+ messages in thread
From: Roland Orre @ 2002-12-26 23:50 UTC (permalink / raw)
> On Fri, 2002-12-27 at 00:08, Marius Vollmer wrote:
> <snip>
> The best solution is not to use procedure->macro. Use define-macro
> (or defmacro) or define-syntax.
> <snip>
> You could try
> (define-macro (push! stack obj)
> `(set! ,stack (cons ,obj ,stack)))
> <snip>
Thanks, that macro definition works fine. I did, however, as this macro
is used in several places in my code, just convert it to a SCM_SYNTAX
which also solved the problem. The problem occured when I was checking
my old code for our recent conversion to guile 1.6. In most places the
old procedure->macro worked well though.
> (Just curious: where did you learn about procedure->macro? we don't
> want people to use it.)
It's a remaining in my code from around 1990, long before guile, when I
was a heavily scm (which guile is based upon) user.
It seems as I should try to adapt to the new macros :)
Thanks once again!
Best regards
Roland
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Found a bug in guile 1.6.0
2002-12-26 23:50 ` Returned mail: see transcript for details Roland Orre
@ 2002-12-27 0:02 ` Roland Orre
0 siblings, 0 replies; 2+ messages in thread
From: Roland Orre @ 2002-12-27 0:02 UTC (permalink / raw)
On Fri, 2002-12-27 at 00:08, Marius Vollmer wrote:
<snip>
> The best solution is not to use procedure->macro. Use define-macro
> (or defmacro) or define-syntax.
<snip>
> You could try
> (define-macro (push! stack obj)
> `(set! ,stack (cons ,obj ,stack)))
<snip>
Thanks, that macro definition works fine. I did, however, as this macro
is used in several places in my code, just convert it to a SCM_SYNTAX
which also solved the problem. The problem occured when I was checking
my old code for our recent conversion to guile 1.6. In most places the
old procedure->macro worked well though.
> (Just curious: where did you learn about procedure->macro? we don't
> want people to use it.)
It's a remaining in my code from around 1990, long before guile, when I
was a heavily scm (which guile is based upon) user.
It seems as I should try to adapt to the new macros :)
Thanks once again!
Best regards
Roland
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-27 0:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200212262346.gBQNkaNc029823@smtp.nada.kth.se>
2002-12-26 23:50 ` Returned mail: see transcript for details Roland Orre
2002-12-27 0:02 ` Found a bug in guile 1.6.0 Roland Orre
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).