feature request: nim's compilation option pragmas

Timothee Cour via Digitalmars-d digitalmars-d at puremagic.com
Sat Dec 17 20:46:34 PST 2016


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");
// compile this section with specified flags as it's critical
pragma(pop);
```

[1] http://nim-lang.org/docs/manual.html#pragmas-compilation-option-pragmas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20161217/8208af8e/attachment-0001.html>


More information about the Digitalmars-d mailing list