www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15155] New: ')' cannot be expressed in code examples

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 puremagic.com
          Reporter: Marco.Leise 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"

--
Oct 04 2015