This is the mail archive of the
kawa@sourceware.cygnus.com
mailing list for the Kawa project.
Re: kawa question [forwarded]
- To: potts at umich dot edu
- Subject: Re: kawa question [forwarded]
- From: Marco Vezzoli <marco dot vezzoli at st dot com>
- Date: Wed, 16 Feb 2000 07:56:58 +0100
- Cc: kawa at sourceware dot cygnus dot com
- Organization: sgs-thomson
- References: <B4CF560B.1112F%potts@umich.edu>
potts@umich.edu wrote:
> Also, life would be a lot easier if there was a predicate for telling me
> whether a variable name was bound in the current environment or not.
kawa provides the predicate (environment-bound? <env> <symbol>)
> If
> there was a scheme procedure for removing a binding, that would be cool too;
> I won't have to do it from Java.
You can define something like
(define (unbound env (sym <symbol>))
((primitive-virtual-method "gnu.mapping.Environment" "remove" <object>
(<symbol>))env sym))
> ??? From what I can see, there is not a
> standard scheme method for doing this, but I will have to check out my
> heavy-duty docs at home.
>
This code uses kawa extensions and as far as I know (very little, in
effect) it isn't portable to other scheme implementations.
> Thanks,
>
> Paul
--
(--cafe babe--)
Marco Vezzoli marco.vezzoli@st.com
CR&D Intranet Developement STMicroelectronics
tel. +39 039 603 6852 fax. +39 039 603 5055