[Issue 9066] Implement constructor forwarding template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 4 12:00:15 PST 2013


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



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-04 12:00:13 PST ---
There's a few problems:

Default values aren't handled, and they could be initialized with a
non-accessible private value. The parameter types could also be private types
which might not be accessible.

It would definitely be simpler to implement inheriting constructors, C++11 has
them, described here:
http://stackoverflow.com/questions/9979194/what-is-constructor-inheritance

Perhaps we could implement something similar via:

class C : B
{
    alias super.this this;
}

-- 
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