comparing strings with ==

Date view Thread view Subject view Author view

From: Archie Cobbs (archie@whistle.com)
Date: Wed Sep 02 1998 - 20:37:14 EDT


Does kaffe keep all String objects unique so that you can do this?

+ if (protocol == "ftp") {
+ port = 21;
+ }

That's cool if it does... then can't we simplify String.equals() ?

-Archie

___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:56:54 EDT