http://d.puremagic.com/issues/show_bug.cgi?id=5517


Walter Bright <bugzi...@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzi...@digitalmars.com
         Resolution|                            |INVALID


--- Comment #9 from Walter Bright <bugzi...@digitalmars.com> 2012-01-28 
15:19:50 PST ---
Quoth the spec:

"The expression assert(0) is a special case; it signifies that it is
unreachable code. Either AssertError is thrown at runtime if it is reachable,
or the execution is halted (on the x86 processor, a HLT instruction can be used
to halt execution). The optimization and code generation phases of compilation
may assume that it is unreachable code."

It's working as designed.

dlang.org/expression.html#AssertExpression

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to