[Issue 9066] Add constructor inheritance feature

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 11 09:59:28 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9066



--- Comment #13 from Martin Nowak <code at dawg.eu> 2013-10-11 09:59:26 PDT ---
(In reply to comment #10)
> I see what you mean, that could work. Although I still want the ability to
> explicitly re-introduce base-class constructors via some syntax. So in essence
> we'll have:

I had an idea how to achieve more flexibility with only a single
special case for alias this.

- We add implicit constructor inheritance.
- When you define a constructor implicit inheritance is disabled.
- We special case alias super.this this for explicit inheritance, it is invalid
currently and has no useful semantic meaning.
  It's semantic meaning is overload the super class constructors
  with the local constructors.
- You can use @disable this(int) in the derived class to selectively
  disable some of the super class constructors.

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


More information about the Digitalmars-d-bugs mailing list