Re: INTERN_UTF8CONSTS

Date view Thread view Subject view Author view

From: Archie Cobbs (archie@whistle.com)
Date: Fri Dec 18 1998 - 16:10:35 EST


Archie Cobbs writes:
> That is, separate the String objects from the String data, so
> the mapping: String objects -> char arrays is a many-to-one mapping.
> E.g.:
>
> public final class String {
> private char[] contents;
> ...
> }
>
> Then a.equals(b) IFF a.contents == b.contents. Or even better,
> a.equals(b) IFF a == b (might as well go all the way).

I just realized that a.equals(b) IFF a == b is not possible.
So, fall back to going for a.equals(b) IFF a.contents == b.contents.

-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:57:23 EDT