Re: syntax-rules problem

2011-04-04 Thread David Pirotte
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

Re: syntax-rules problem

2011-04-03 Thread Andreas Rottmann
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)

syntax-rules problem

2011-04-02 Thread David Pirotte
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