[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
syntax-rules problem
From: |
David Pirotte |
Subject: |
syntax-rules problem |
Date: |
Sun, 3 Apr 2011 01:34:43 -0300 |
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
- syntax-rules problem,
David Pirotte <=