After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 652098 - Explicit interface implementations
Explicit interface implementations
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
: 629612 (view as bug list)
Depends on:
Blocks: 629612
 
 
Reported: 2011-06-08 08:28 UTC by Luca Bruno
Modified: 2014-05-18 18:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Support explicit interface methods implementation (8.37 KB, patch)
2011-06-08 14:29 UTC, Luca Bruno
none Details | Review
Support explicit interface methods implementation (7.55 KB, patch)
2011-09-04 16:35 UTC, Luca Bruno
none Details | Review

Description Luca Bruno 2011-06-08 08:28:32 UTC
Hello,
IRC bits with Jurg for a possible implementation with C#-like syntax (http://msdn.microsoft.com/en-us/library/aa664591%28v=vs.71%29.aspx):

Definition:
1) Start from processing all explicit interface implementations of a class.
2) Remaining unimplemented interface methods will be matched against normal class methods. If any method signature of the remaining interface methods with the same name does not match the relative normal class method signature, error.

Invocation:
Explicit interface implementations are not part of the class scope. Therefore, in order to invoke an interface method implemented by a class, a cast must be made to the interface of interest.
Comment 1 Luca Bruno 2011-06-08 14:29:31 UTC
Created attachment 189474 [details] [review]
Support explicit interface methods implementation
Comment 2 Luca Bruno 2011-09-04 16:35:04 UTC
Created attachment 195630 [details] [review]
Support explicit interface methods implementation

Fixes bug 652098.
Comment 3 Jürg Billeter 2012-06-02 13:57:41 UTC
*** Bug 629612 has been marked as a duplicate of this bug. ***
Comment 4 Luca Bruno 2014-01-15 08:25:56 UTC
In the next days I'm going to update the patch and commit it. I'm ready to revert it before the next stable release in case anything goes wrong.
Comment 5 Luca Bruno 2014-05-18 18:11:31 UTC
commit e1a3ff9470763e7c6ff5a887036390bd418f4e46
Author: Luca Bruno <lucabru@src.gnome.org>
Date:   Wed Jun 8 14:10:55 2011 +0200

    Support explicit interface methods implementation
    
    Fixes bug 652098

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.