<div dir="ltr"><div><br></div><div>Could we support something similar to nim's compilation option pragmas [1]:</div><div><br></div><div>```</div><div><div>{.push checks: off.}</div><div># compile this section without runtime checks as it is speed critical</div><div># ... some code ...</div><div>{.pop.} # restore old settings</div></div><div>```</div><div><br></div><div>in D could look like:</div><div><br></div><div>```</div><div>pragma(push, "-noboundscheck -O -release");<br></div><div>// compile this section with specified flags as it's critical</div><div><div>pragma(pop);</div></div><div>```<br></div><div><br></div><div>[1] <a href="http://nim-lang.org/docs/manual.html#pragmas-compilation-option-pragmas">http://nim-lang.org/docs/manual.html#pragmas-compilation-option-pragmas</a><br></div><div><br></div></div>