[Issue 2417] protected base member is not available via base handle in a derived class if it is defined in a separate module
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 24 08:47:44 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2417
smjg at iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg at iname.com
Keywords| |accepts-invalid
Summary|protected base member is not|protected base member is not
|available via base hanlde in|available via base handle in
|a derived class if it is |a derived class if it is
|defined in a separate module|defined in a separate module
Version|2.019 |1.036
------- Comment #11 from smjg at iname.com 2008-11-24 10:47 -------
http://www.digitalmars.com/d/1.0/attribute.html
http://www.digitalmars.com/d/2.0/attribute.html
"If accessing a protected instance member through a derived class member
function, that member can only be accessed for the object instance which is the
'this' object for the member function call."
So the bug is that m2.foo() passes, rather than that m1.foo() fails.
--
More information about the Digitalmars-d-bugs
mailing list