On 7/28/2014 8:53 AM, bearophile wrote:
Daniel Murphy:

One murky area is that assert(0) is currently used to mean both 'unreachable'
and 'unimplemented'.  It's unclear what the compiler is allowed to do with an
assert(0) in release mode.

I'd still like to have a halt() in D, and have assert(0) with the same semantics
of the other asserts. In many cases when you have a different feature it's good
to also give it a different name.

The marginal utility of all these proposals is pretty much zero. assert(0) serves just fine.

Reply via email to