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


Kenji Hara <k.hara...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k.hara...@gmail.com


--- Comment #2 from Kenji Hara <k.hara...@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: -------

Reply via email to