Re: feature request: nim's compilation option pragmas

2016-12-18 Thread Basile B. via Digitalmars-d
On Sunday, 18 December 2016 at 04:46:34 UTC, Timothee Cour wrote: Could we support something similar to nim's compilation option pragmas [1]: ``` {.push checks: off.} # compile this section without runtime checks as it is speed critical # ... some code ... {.pop.} # restore old settings ```

Re: feature request: nim's compilation option pragmas

2016-12-17 Thread Stefan Koch via Digitalmars-d
On Sunday, 18 December 2016 at 04:46:34 UTC, Timothee Cour wrote: Could we support something similar to nim's compilation option pragmas [1]: ``` {.push checks: off.} # compile this section without runtime checks as it is speed critical # ... some code ... {.pop.} # restore old settings ```

feature request: nim's compilation option pragmas

2016-12-17 Thread Timothee Cour via Digitalmars-d
Could we support something similar to nim's compilation option pragmas [1]: ``` {.push checks: off.} # compile this section without runtime checks as it is speed critical # ... some code ... {.pop.} # restore old settings ``` in D could look like: ``` pragma(push, "-noboundscheck -O -release");