unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Roland Orre <orre@nada.kth.se>
Subject: Re: Found a bug in guile 1.6.0
Date: 27 Dec 2002 01:02:28 +0100	[thread overview]
Message-ID: <1040947348.28897.26.camel@localhost> (raw)
In-Reply-To: <1040946613.28896.17.camel@localhost>

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


  reply	other threads:[~2002-12-27  0:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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   ` Roland Orre [this message]
2002-12-18 18:42 Continuations: possible newbie question Thien-Thi Nguyen
2002-12-26 21:30 ` Found a bug in guile 1.6.0 Roland Orre
2002-12-26 23:08   ` Marius Vollmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1040947348.28897.26.camel@localhost \
    --to=orre@nada.kth.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).