This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bindings


"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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]