This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Bindings
Hello,
The idea is actually to catch them outside the scope of the kawa
editor - we need the realtime 'Java' environment bindings in order to access
bindings from the source side of things and not from the Kawa runtime
environment.
Cheers.
Alex
----- Original Message -----
From: "Bruce Lewis" <brlewis@ALUM.MIT.EDU>
To: "Alexandre Lemaire" <rm1x@rogers.com>
Cc: <kawa@sources.redhat.com>
Sent: Thursday, July 10, 2003 10:30 AM
Subject: 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.