[Issue 9978] Can override interface function

2018-02-13 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9978

Martin Nowak  changed:

   What|Removed |Added

 CC||c...@dawg.eu

--- Comment #4 from Martin Nowak  ---
Also makes more sense to use override in case we support default methods in
interfaces (Java 8) at some point.

--


[Issue 9978] Can override interface function

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9978

Andrei Alexandrescu  changed:

   What|Removed |Added

Version|D1 & D2 |D2

--


[Issue 9978] Can override interface function

2014-07-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9978

Denis Shelomovskij  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||verylonglogin@gmail.com
 Resolution|--- |INVALID

--- Comment #3 from Denis Shelomovskij  ---
(In reply to Damian from comment #2)
> [snip]
> I'm not sure why both are allowed, even
> though it does no harm to keep both, it seems one should be the right way
> and the other a warning possibly?

One can open an enhancement request for this, but this issue report is invalid.

--


[Issue 9978] Can override interface function

2013-04-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9978



--- Comment #2 from Damian  2013-04-22 11:03:58 PDT ---
(In reply to comment #1)
> I would tend to think this is allowed.  Imagine if you switched an interface 
> to
> an abstract base class or vice versa, you wish to make someone go through all
> their calls and add/remove override?
> 
> I had a bug fixed a long time ago, issue 2524.
> 
> In a comment, Walter said:
> 
> "This is a compiler bug. You can override an interface function."
> 
> I'm assuming this still applies today.

That's precisely what I was doing when I stumbled upon this, changing a
abstract class to a interface. I'm not sure why both are allowed, even though
it does no harm to keep both, it seems one should be the right way and the
other a warning possibly?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 9978] Can override interface function

2013-04-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9978



--- Comment #1 from Steven Schveighoffer  2013-04-22 
10:22:51 PDT ---
I would tend to think this is allowed.  Imagine if you switched an interface to
an abstract base class or vice versa, you wish to make someone go through all
their calls and add/remove override?

I had a bug fixed a long time ago, issue 2524.

In a comment, Walter said:

"This is a compiler bug. You can override an interface function."

I'm assuming this still applies today.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---