d为何不调用其它函数
auto res = firstAttr;
while (res)
{
if (res.localName != localName || res.namespaceURI != namespaceURI)
res = res._nextAttr;
else
break;
}
return res;
如果操作数为空,可能不会调用opEquals.似乎Attr.localName可返回null.
确实是这样的!见dmd/object.d源码的bool opEquals(LHS, RHS).
浙公网安备 33010602011771号