This is the mail archive of the kawa@sourceware.cygnus.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]

Re: kawa question [forwarded]


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

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