[Issue 14967] std.xml.Tag doesn't include attributes in comparison
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jul 2 06:02:23 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=14967
Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dlang-bugzilla at thecybershad
| |ow.net
See Also| |https://issues.dlang.org/sh
| |ow_bug.cgi?id=10381
Resolution|--- |INVALID
--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
std.xml.Tag.opEquals is defined as:
override bool opEquals(scope Object o)
{
const tag = toType!(const Tag)(o);
return
(name != tag.name) ? false : (
(attr != tag.attr) ? false : ( // <---
(type != tag.type) ? false : (
true )));
}
For opCmp, it compares the AA's pointer, and refers to issue 10381.
When reporting a bug, please always provide a self-contained, reproducible test
case which exhibits the current and desired behaviour, unless you plan to work
on the bug yourself. Incomplete bug reports will be closed; please reopen if
you can post an example as described above.
--
More information about the Digitalmars-d-bugs
mailing list