Bug 130 – DocComments/Expression -- assert(0) paragraph

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2006-05-06T18:02:00Z
Last change time
2015-06-09T05:14:42Z
Assigned to
bugzilla
Creator
braddr

Comments

Comment #0 by braddr — 2006-05-06T18:02:29Z
The paragraph: 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 a HLT instruction is executed. The optimization and code generation phases of compilation may assume that it is unreachable code. The problem: HLT is an implementation, and x86 specific. The language spec should specify intended behaviors first, and implementation as an example if necessary. A description of what HLT does and that it's an x86 opcode should be added if the HLT part remains.
Comment #1 by bugzilla — 2006-06-20T02:21:13Z
Fixed DMD 0.161