From: David Pirotte <david@altosw.be>
To: guile-user <guile-user@gnu.org>
Subject: syntax-rules problem
Date: Sun, 3 Apr 2011 01:34:43 -0300 [thread overview]
Message-ID: <20110403013443.550efff5@rascar> (raw)
Hello,
guile version: 2.0.0.160-39be
this used to work:
(define-syntax push*
(syntax-rules ()
((push* . ?args)
(set! (car (last-pair ?args))
(cons* ?args)))
))
scheme@(guile-user)> (define ll '(1 2 3 4 5))
scheme@(guile-user)> (push* 'a 'b ll)
ERROR: In procedure setter:
ERROR: In procedure setter: Wrong type argument in position 1: #<procedure car (_)>
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,bt
In current input:
3:0 1 (#<procedure a164730 at <current input>:3:0 ()>)
In unknown file:
0 (setter #<procedure car (_)>)
scheme@(guile-user) [1]>
Cheers,
David
next reply other threads:[~2011-04-03 4:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-03 4:34 David Pirotte [this message]
2011-04-03 19:16 ` syntax-rules problem Andreas Rottmann
2011-04-05 1:26 ` David Pirotte
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=20110403013443.550efff5@rascar \
--to=david@altosw.be \
--cc=guile-user@gnu.org \
/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).