Re: References/locations

2008-08-20 Thread Stephen Compall
"Maciek Godek" <[EMAIL PROTECTED]> writes: > By the way, the let-alias syntax you > gave me in your former letter doesn't work with guile either. I am curious about this; was this with use-syntax on syncase, or use-modules/#:use-module? Or maybe it has just been a while. :) -- I write stuff at

Re: set-pair!

2008-08-20 Thread Clinton Ebadi
"Maciek Godek" <[EMAIL PROTECTED]> writes: > Hi, > I've been trying to write a function or macro that > would work like this: > > (let ((a 0)(b 0)) > (set-pair! '(a . b) '(1 . 2)) > (cons a b)) ; => (1 . 2) > > I eventually wrote: > > (define (set-pair! pair values) > (let ( (e (the-environm

set-pair!

2008-08-20 Thread Maciek Godek
Hi, I've been trying to write a function or macro that would work like this: (let ((a 0)(b 0)) (set-pair! '(a . b) '(1 . 2)) (cons a b)) ; => (1 . 2) I eventually wrote: (define (set-pair! pair values) (let ( (e (the-environment)) (a (car pair)) (d (cdr pair)) ) (local-eval `(