This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: how to pass Java null to a function?
- From: Helmut Eller <e9626484 at stud3 dot tuwien dot ac dot at>
- To: wowa at jet dot msk dot su
- Cc: kawa at sources dot redhat dot com
- Date: Mon, 18 Feb 2002 14:53:44 +0100
- Subject: Re: how to pass Java null to a function?
- References: <E16cnlF-0002KQ-00@horse>
- Reply-to: Helmut Eller <e9626484 at stud3 dot tuwien dot ac dot at>
> Hello,
>
> Using Kawa, I can call some Java methods which may return Java null
> value. Is it possible in Kawa to check if the object is null?
Try (eq? #!null <your-object>)
>
> next question: is it possible to pass Java `null' value to a Java
> function in kawa scheme?
Pass #!null.
Please read the documentation:
http://www.gnu.org/software/kawa/Special-named-constants.html