This is the mail archive of the kawa@sources.redhat.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: More module problems


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


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