[Issue 15155] New: ')' cannot be expressed in code examples
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sun Oct  4 12:24:53 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15155
          Issue ID: 15155
           Summary: ')' cannot be expressed in code examples
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ddoc, rejects-valid
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: Marco.Leise at gmx.de
/**---
  char c = ')';
  ---*/
  void main() {}
DMD: "Warning: Ddoc: Stray ')'. This may cause incorrect Ddoc output. Use
$(RPAREN) instead for unpaired right parentheses."
Me: "But it is a code example!? Well then ..."
  /**---
  char c = '$(RPAREN)';
  ---*/
  void main() {}
Me: "But stop warning me now, ok?"
DMD: "Error: unterminated character constant"
Me: ":-( sarcasm is the dark side of humor, DMD"
--
    
    
More information about the Digitalmars-d-bugs
mailing list