assert semantic change proposal

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 4 08:01:27 PDT 2014


On 8/4/14, 7:27 AM, Matthias Bentrup wrote:
> Should this semantics extend to array bounds checking, i.e. after the
> statement
>
> foo[5] := 0;
>
> can the optimizer assume that foo.length >= 6 ?

Yes, definitely. -- Andrei



More information about the Digitalmars-d mailing list