Subject: Re: format function for list
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 22 Aug 2001 12:18:19 GMT
Newsgroups: comp.lang.scheme
Message-ID: <9m07ub$d9783$1@fido.engr.sgi.com>
Manuel Giraud  <giraud@sor.inria.frUNSPAM> wrote:
+---------------
| ...imagine a function that returns some quasiquoted list and you
| want to "format" it. For example : 
|    (define (f) `(coucou ,a))
| But the following doesn't work : 
|    (let ((a 1)) (f)) <-------- Here I want to get '(coucou 1)
| How can I do this.
+---------------

	> (define (f x) `(coucou ,x))
	> (let ((a 1)) (f a))
	(coucou 1)
	>


-Rob

-----
Rob Warnock, 30-3-510		<rpw3@sgi.com>
SGI Network Engineering		<http://reality.sgi.com/rpw3/>
1600 Amphitheatre Pkwy.		Phone: 650-933-1673
Mountain View, CA  94043	PP-ASEL-IA

[Note: aaanalyst@sgi.com and zedwatch@sgi.com aren't for humans ]