Array operation doesn't check array bounds
Simon
s.d.hammett at gmail.com
Sun Apr 3 05:08:39 PDT 2011
On 03/04/2011 12:46, bearophile wrote:
> Simon:
>
>> "A program may not rely on array bounds checking happening"
>
> Yet DMD has to perform them to help programmers.
No it doesn't. D is supposed to be systems programming language.
Unnecessary bounds checking would make array access too slow.
Mind you phobos should provide an array container which does that 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