Hi Andreas,
Thank you very much for the explication, very helpful. At the time I wondered
how it
did work [guile-1.6] since the definition was quite clear about set! , but it
did
and then I used it :-)
[i am not using guile-1.8 but thanks for the advice, which might help
other
David Pirotte writes:
> 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)
>
Well, that's not well-formed code; there two problems here:
(1)
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 proced