array comparison

Simen kjaeraas simen.kjaras at gmail.com
Tue Feb 16 10:40:27 PST 2010


On Tue, 16 Feb 2010 06:53:31 +0100, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> I think comparing arrays should work if comparison of individual  
> elements should work.
>
> int[] a;
> long[] b;
> assert(a == b);
>
> A minimalistic-motivated counter-argument could be put forth, but I  
> think we want smart minimalistic, not dumb minimalistic.
>
> Andrei

Absolutely.

-- 
Simen



More information about the Digitalmars-d mailing list