<div class="gmail_quote">On Tue, Oct 12, 2010 at 2:37 AM, Andrei Alexandrescu <span dir="ltr">&lt;<a href="mailto:SeeWebsiteForEmail@erdani.org">SeeWebsiteForEmail@erdani.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<div class="im">assert(false) could be in an ideal world replaced by an intrinsic called e.g. halt() that looks and feels like a regular function but is recognized by the compiler. No new keyword would be needed. But I don&#39;t think that would mark a significant improvement in the language.</div>
</blockquote><div><br></div><div>Would it be possible to change the compiler to only treat &quot;assert(false);&quot; specially, avoiding treating &quot;enum a = 0; assert(a);&quot; or more complex constructs that way?</div>
<div> </div></div>