[Issue 16241] New: std.xml mistakenly disallows "==" in comments but allows "--"

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 6 07:29:07 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16241

          Issue ID: 16241
           Summary: std.xml mistakenly disallows "==" in comments but
                    allows "--"
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: ag0aep6g at gmail.com

----
void main()
{
    import std.xml;
    auto doc1 = new Document("<r><!-- -- --></r>"); /* accepted */
    auto doc2 = new Document("<r><!-- == --></r>"); /* rejected */
}
----

Should be the other way around. Seems like a simple typo in the code. Going to
make a PR.

--


More information about the Digitalmars-d-bugs mailing list