unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* syntax-rules problem
@ 2011-04-03  4:34 David Pirotte
  2011-04-03 19:16 ` Andreas Rottmann
  0 siblings, 1 reply; 3+ messages in thread
From: David Pirotte @ 2011-04-03  4:34 UTC (permalink / raw)
  To: guile-user

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



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

end of thread, other threads:[~2011-04-05  1:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-03  4:34 syntax-rules problem David Pirotte
2011-04-03 19:16 ` Andreas Rottmann
2011-04-05  1:26   ` David Pirotte

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