This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Bindings
- From: Bruce Lewis <brlewis at ALUM dot MIT dot EDU>
- To: "Alexandre Lemaire" <rm1x at rogers dot com>
- Cc: <kawa at sources dot redhat dot com>
- Date: 10 Jul 2003 10:30:46 -0400
- Subject: Re: Bindings
- References: <000c01c34640$85b21e40$0700a8c0@Lexx>
"Alexandre Lemaire" <rm1x@rogers.com> writes:
> The idea is to store contour variables for diagram purposes.
Maybe you want something like this:
(define points '())
(define (store-for-diagram f x)
(let ((y (f x)))
(set! points (cons (cons x y) points))
y))
Then you can do
(store-for-diagram square 3)
where you might otherwise do
(square 3)
and the x,y coordinates will be stored in the points list.
--
"Notwithstanding fervent argument that patent protection is essential
for the growth of the software industry, commentators have noted
that `this industry is growing by leaps and bounds without it.'"
-- US Supreme Court Justice John Paul Stevens, March 3, 1981.