On Fri, 14 May 2010 07:32:54 -0400, Steven Schveighoffer wrote: > On Fri, 14 May 2010 02:31:29 -0400, Lars T. Kyllingstad > <pub...@kyllingen.nospamnet> wrote: > >> On Fri, 14 May 2010 02:38:40 +0000, kai wrote: > > >>> I was using the DMD2 compiler on >>> mac and windows, with -O -release. >> >> 1. Have you tried the -noboundscheck compiler switch? Unlike C, D >> checks that you do not try to read/write beyond the end of an array, >> but you can turn those checks off with said switch. > > -release implies -noboundscheck (in fact, I did not know there was a > noboundscheck flag, I thought you had to use -release). > > -Steve
You are right, just checked it now. But it's strange, I thought the whole point of the -noboundscheck switch was that it would be independent of -release. But perhaps I remember wrongly (or perhaps Walter just hasn't gotten around to it yet). Anyway, sorry for the misinformation. -Lars