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 733865 - The diamond inheritance prohibits overloading
The diamond inheritance prohibits overloading
Status: RESOLVED OBSOLETE
Product: vala
Classification: Core
Component: Code Generator: GObject
0.25.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2014-07-28 14:02 UTC by Maciej (Matthew) Piechotka
Modified: 2018-05-22 15:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Vala example (2.02 KB, text/x-vala)
2014-07-28 14:02 UTC, Maciej (Matthew) Piechotka
Details
C# example (1.61 KB, text/x-csharp)
2014-07-28 14:05 UTC, Maciej (Matthew) Piechotka
Details

Description Maciej (Matthew) Piechotka 2014-07-28 14:02:02 UTC
Created attachment 281869 [details]
Vala example

If class A is subclass of B and A, B implements I with method f, f cannot be overridden in subclass of C. It's possible to some extend workaround it in Vala by explicit method implementation (see attached code) but not for properties

Ideally it would follow the C# convention:
 - If B contains the explicit implementation of f then call goes to explicit override as in C#
 - If B does not contain it the explicit override call is either as in workaround (+ for speed) or just redirecting to correct method in parent class.
Comment 1 Maciej (Matthew) Piechotka 2014-07-28 14:05:11 UTC
Created attachment 281870 [details]
C# example
Comment 2 Luca Bruno 2014-12-19 14:05:37 UTC
Vala has explicit interface method implementation. So the problem is left only for properties?
Comment 3 GNOME Infrastructure Team 2018-05-22 15:13:19 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vala/issues/462.