More module problems
s.blomberg
nhi965@abdn.ac.uk
Fri Aug 25 03:18:00 GMT 2000
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
More information about the Kawa
mailing list