Vijay Nayar Wrote:

> void main() {
>     int[] ages = [28, 23, 40];
>     assert(ages[0] == 28);
>     ages[3] = 54;
>     assert(ages[3] == 54);
> }
> 
> $ dmd -release bounds.d
> $ ./bounds 
> # No segfault because the address is within the address space
> # for the program allowed by the OS.

Walter said this feature was removed and now you need -no-bounds-check switch 
to turn checks off in release mode.

Reply via email to