version(noboundscheck) + friends

Timothee Cour thelastmammoth at gmail.com
Mon Jun 3 15:47:55 PDT 2013


Thanks, D_NoBoundsChecks indeed works.


On Mon, Jun 3, 2013 at 3:19 PM, Ali Çehreli <acehreli at yahoo.com> wrote:

> 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.


That seems like an unimportant technicality, isn't it?
Couldn't we define version=noboundscheck when noboundscheck is used?
Why use version(D_NoBoundsChecks) instead of version(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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20130603/937406d8/attachment.html>


More information about the Digitalmars-d-learn mailing list