This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: unusual type conversion in invoke
- From: Per Bothner <per at bothner dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: Vladimir Tsichevski <wowa at jet dot msk dot su>, kawa at sources dot redhat dot com
- Date: Fri, 04 Apr 2003 00:14:54 -0800
- Subject: Re: unusual type conversion in invoke
- References: <3E8C117E.9030407@jet.msk.su> <3E8C795F.6070203@bothner.com>
I did a little bit of playing around with this.
I agree preferring indexoF(String) over indexOf(int)
ia wrong, but it doesn't look like a simple fix,
and I think it is best to defer dealing with the
issue until after Kawa 1.7 is released.
Note there is already some special-case code for the
"tostring_type" i.e. java.lang.String case, mostly
to give that case lower-priority, but it doesn't
solve this particular problem. I suspect we may want
three levels of type conversion:
1. widening conversions (e.g. String->Object, int->double)
2. narrowing conversions (e.g. Object->Number)
3. special conversions (Object->String, perhaps list->array)
--
--Per Bothner
per at bothner dot com http://per.bothner.com/