Re: comparing strings with ==

Date view Thread view Subject view Author view

From: Peter C. Mehlitz (peter@transvirtual.com)
Date: Thu Sep 03 1998 - 16:52:41 EDT


On Thu, 03 Sep 1998, Tim Wilkinson wrote:
>Strings can be 'intern'ed in which case you can then come them using ==, but
>this doesn't happen automatically (I'm not sure how it could without help from
>the compiler - how to you magic new String("hello") into it's intern, and does
>the compiler automatically intern quoted strings in source.

Yes, the missing "Symbol" class (all Smalltalkers look for it). Just to let you
know - I asked Maxim (Kizub, of "Kiev") to think about it (compiler crc32
pre-hashed, String-derived class). Shouldn't be too hard (though not plain
Java).

-- Peter


Date view Thread view Subject view Author view

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