On 06/03/2013 03:11 PM, Timothee Cour wrote:

> A)
> How to query for compiler flags, eg whether or not "noboundscheck" was set?

version D_NoBoundsChecks:

  http://dlang.org/version.html

> B)
> Why aren't we using version=noboundscheck (+ friends) instead of
> -noboundscheck?

Because the runtime is not written in D. :) However, it should be easy to translate version=noboundscheck to -noboundscheck.

> C)
> similar to version(assert) which IIRC was introduced later, could we
> introduce version(noboundscheck) (+ friends) ?

It is there! :) (I haven't test it though.)

Ali

Reply via email to