This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Warning elimination
> Thanks Chris for the advice about using `as'. I suspect <String> may be a
> better choice because the Kawa string is implicitly coerced to a Java
> string/Kawa symbol.
In this case, the result would be the same. The code would generate
byte code similar to:
((gnu.lists.FString) file).toString()
while casting to <String> would just give:
file.toString()
The cast to <string> seemed more semantically correct to me, but either
way is fine.
Regards,
Chris Dean