[Issue 10912] property overridding requires both accessors to be overridden

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 27 19:43:03 PDT 2013


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich at gmail.com
         Resolution|                            |INVALID


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-08-27 19:42:59 PDT ---
Use:

alias super.MyField MyField;

in the 'bar' class. 

When you override only one overload of a function, the other functions are
hidden, unless you re-introduce the overloadset to the subclass. 

This is related to function hijacking, which you can read about here:
http://dlang.org/hijack.html

Although that page seems to miss the information about using 'alias super.name
name' for subclasses, it should probably be filed as a website bug.

-- 
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