[Issue 2889] Alias this properties don't overload with non-alias this	properties.
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Aug 14 15:30:59 PDT 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=2889
Kenji Hara <k.hara.pg at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k.hara.pg at gmail.com
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2011-08-14 15:30:58 PDT ---
I think this is a language design, not a bug.
In normal class inheritance, derived class method doesn't overload with base
class methods that have same names.
class Array  // the synonym of uint[]
{
    size_t length(){ return 0; }
    void length(size_t n){  }
    // built-in length property (getter and setter)
}
class ArrayWrapper : Array
{
    void length(uint l) {}
    // length overrides Array.length, not overloads
}
-- 
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