digitalmars.D.bugs - [Issue 502] New: reimplementing methods for interface
- d-bugmail puremagic.com (26/26) Nov 13 2006 http://d.puremagic.com/issues/show_bug.cgi?id=502
- d-bugmail puremagic.com (11/11) Nov 26 2006 http://d.puremagic.com/issues/show_bug.cgi?id=502
- d-bugmail puremagic.com (10/10) Nov 26 2006 http://d.puremagic.com/issues/show_bug.cgi?id=502
- d-bugmail puremagic.com (11/11) Nov 08 2007 http://d.puremagic.com/issues/show_bug.cgi?id=502
- d-bugmail puremagic.com (8/8) Nov 08 2007 http://d.puremagic.com/issues/show_bug.cgi?id=502
- d-bugmail puremagic.com (11/11) Jan 21 2012 http://d.puremagic.com/issues/show_bug.cgi?id=502
http://d.puremagic.com/issues/show_bug.cgi?id=502 Summary: reimplementing methods for interface Product: D Version: 0.173 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: benoit tionex.de http://www.digitalmars.com/d/interface.html A reimplemented interface must implement all the interface functions, it does not inherit them from a super class: interface D{ int foo(); } class A : D{ int foo() { return 1; } } class B : A, D{ alias A.foo foo; // shouldn't this work for the reimplementation ??? } in DMD 0.173 it doesn't. --
Nov 13 2006
http://d.puremagic.com/issues/show_bug.cgi?id=502 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID This is as designed: "A reimplemented interface must implement all the interface functions, it does not inherit them from a super class:" --
Nov 26 2006
http://d.puremagic.com/issues/show_bug.cgi?id=502 The quotation says nothing about whether this is valid code. It merely states _that_ a class that reimplements an interface must implement the interface functions, not _how_ it may or may not go about doing so. Hence the comment, "shouldn't this work for the reimplementation ???" i.e. shouldn't this be one way to go about implementing the interface functions? --
Nov 26 2006
http://d.puremagic.com/issues/show_bug.cgi?id=502 smjg iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED OS/Version|Linux |All Resolution|INVALID | Reopening per lack of response to my last comment, and considering that it's been brought up again. --
Nov 08 2007
http://d.puremagic.com/issues/show_bug.cgi?id=502 smjg iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |davidl 126.com *** Bug 1584 has been marked as a duplicate of this bug. *** --
Nov 08 2007
http://d.puremagic.com/issues/show_bug.cgi?id=502 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID 11:18:28 PST --- An alias is not an implementation. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 21 2012