Associative Arrays max length? 32bit/64bit

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Sun May 25 07:33:03 PDT 2014


On Sun, 25 May 2014 04:59:43 -0700, John Colvin  
<john.loughran.colvin at gmail.com> wrote:

> On Sunday, 25 May 2014 at 06:54:47 UTC, Steven Schveighoffer wrote:
>>
>> It's a trivial change to add opEquals when opCmp is defined.
>
> Perhaps I'm being naïve, but can't we just have a default compiler  
> generated opEquals iff opCmp is defined and opEquals is not.

That is a possibility. But this doesn't solve the issue of types which  
have no valid opCmp, but have a valid opEquals. AA's really should never  
use opCmp, it's too limiting.

-Steve


More information about the Digitalmars-d mailing list