Array operation doesn't check array bounds

Simon s.d.hammett at gmail.com
Sun Apr 3 05:05:47 PDT 2011


On 03/04/2011 12:39, simendsjo wrote:
> On 03.04.2011 13:32, Simon wrote:
>> From the D spec:
>>
>> "A program may not rely on array bounds checking happening"
>>
>
> Where in the spec are you finding this? Or are you talking in general,
> not just on array operations?
>
> D does bounds checking, so I don't see a reason why it shouldn't do it
> on array operations.

http://digitalmars.com/d/2.0/arrays.html

It's in the bit titled "Array Bounds Checking"

-- 
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk


More information about the Digitalmars-d-learn mailing list