www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1973] New: static on interfaces should be an error

reply d-bugmail puremagic.com writes:

           Summary: static on interfaces should be an error
           Product: D
           Version: 1.028
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: benoit tionex.de

static interface Name{

makes all member functions to be static member functions without
implementation. This will create linker errors and does not make sense. Or do i
miss something?

On the other hand, in Java, all nested interfaces are implicit static and it is
optional to list the static keyword.

To avoid problems here, the compiler could give an error if D source code has
the static keyword in an interface declaration.

Apr 05 2008
parent d-bugmail puremagic.com writes:

yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies gmail.com
            Version|1.028                       |D1 & D2
         Resolution|                            |DUPLICATE

--- Comment #1 from yebblies <yebblies gmail.com> 2012-01-31 13:41:52 EST ---
Static no longer propagates to the interface members.  Asking for an error on
this is a dup of issue 3934.

*** This issue has been marked as a duplicate of issue 2553 ***

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