Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
vala
vala
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 701
    • Issues 701
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 39
    • Merge Requests 39
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GNOME
  • valavala
  • Issues
  • #462

Closed
Open
Opened Jul 28, 2014 by bugzilla-migration@bugzilla-migrationReporter

The diamond inheritance prohibits overloading

Submitted by Maciej Marcin Piechotka @mpiechotka

Link to original bug (#733865)

Description

Created attachment 281869 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.

Attachment 281869, "Vala example":
test-iface.vala

Version: 0.25.x

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/vala#462