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: [email protected]
          Reporter: [email protected]

/**---
  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"

--

Reply via email to