[Issue 4407] Catch wrong argument<->attribute assignments in methods

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 11 10:08:26 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=4407



--- Comment #4 from bearophile_hugs at eml.cc 2011-07-11 10:03:16 PDT ---
One example of bug related to  x=x;  found inside the good QT libs:


PassRefPtr<Structure> 
Structure::getterSetterTransition(Structure* structure)
{
  ...
  RefPtr<Structure> transition = create(
    structure->storedPrototype(), structure->typeInfo());
  transition->m_propertyStorageCapacity = 
    structure->m_propertyStorageCapacity;
  transition->m_hasGetterSetterProperties = 
    transition->m_hasGetterSetterProperties;
  transition->m_hasNonEnumerableProperties = 
    structure->m_hasNonEnumerableProperties;
  transition->m_specificFunctionThrashCount = 
    structure->m_specificFunctionThrashCount;
  ...
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list