<div dir="ltr">just more fine-grained control ... but either way.<div>having an escape away from nogc would be needed.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 10, 2016 at 1:56 AM, rsw0x via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sunday, 10 January 2016 at 09:17:20 UTC, Timothee Cour wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
this would make error handling trivial and solve issues such as this:<br>
<br>
FORUM:formatted assert error messages inside nogc functions <a href="http://forum.dlang.org/thread/CANri+EyNyrhMWGCSqZHx_vXDJFSrwhOrV=J2kaTZ6t9-upTAtg@mail.gmail.com" rel="noreferrer" target="_blank">http://forum.dlang.org/thread/CANri+EyNyrhMWGCSqZHx_vXDJFSrwhOrV=J2kaTZ6t9-upTAtg@mail.gmail.com</a><br>
<br>
usage:<br>
<br>
during development:<br>
dmd -debug -ignore_nogc other_flags foo.d<br>
during release:<br>
dmd other_flags foo.d<br>
<br>
@nogc<br>
void test(int a){<br>
<br>
version(ignore_nogc)<br>
  assert(a==1, text("a = ", a));<br>
else<br>
  assert(a==1, "a = ?");<br>
<br>
}<br>
</blockquote>
<br></div></div>
is there a valid reason that debug shouldn't just ignore @nogc?<br>
this is also an issue with contracts iirc<br>
</blockquote></div><br></div>