This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: More module problems
- To: Kawa Mailing List <kawa at sourceware dot cygnus dot com>
- Subject: Re: More module problems
- From: "s.blomberg" <nhi965 at abdn dot ac dot uk>
- Date: Fri, 25 Aug 2000 11:17:49 +0100 (BST)
On 24 Aug 2000, Per Bothner wrote:
> That doesn't sounds right. If you used the latest Kawa release (1.6.70),
> you would not get 2 class files, only one Adder.class. Perhaps
> Adder$Adder.class is lefter over from a previous time, or you are
> actually using the old version of Kawa.
Oops. Yes, I forgot to put the new version in the correct folder.
>
> You mean Kawa 1.6.70, I trust.
Typo.
>
> Note that Adder takes an Object, not an int, hence the need for the IntNum.
> Alternatively, you can write the definition of Adder as:
> (define (Adder (x :: <int>)) <int> (+ 5 x))
> That specifies that the argument and returns types are int, not an Object.
Thanks for your help, Per. Everything works fine now!
Simon.
S. P. Blomberg
Dept of Zoology
University of Aberdeen
Aberdeen, AB24 2TZ, UK. s.blomberg@abdn.ac.uk