[Bug 130] New: DocComments/Expression -- assert(0) paragraph
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat May  6 16:02:30 PDT 2006
    
    
  
http://d.puremagic.com/bugzilla/show_bug.cgi?id=130
           Summary: DocComments/Expression -- assert(0) paragraph
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: braddr at puremagic.com
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.
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list