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]
Other format: [Raw text]

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


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