Issues with array expressions

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Jun 26 09:49:20 PDT 2010


On 06/26/2010 11:19 AM, Robert Jacques wrote:
> I agree. This is bug 2547: Array Ops should check length, at least when
> bounds checking is on (http://d.puremagic.com/issues/show_bug.cgi?id=2547)

I think they should always check array lengths. Checks should be elided 
only when there's gain from doing so; one check prior to one array 
operation will not impact performance for all arrays longer than a 
couple of elements.

Andrei


More information about the Digitalmars-d mailing list