[Issue 9066] Implicit constructor inheritance

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 3 15:56:51 PDT 2013


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


Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu
            Summary|Implement constructor       |Implicit constructor
                   |forwarding template         |inheritance


--- Comment #4 from Martin Nowak <code at dawg.eu> 2013-10-03 15:56:49 PDT ---
I think what we want is implicit constructor inheritance even for non-default
constructors. The same rules should apply.

> Default values aren't handled, and they could be initialized with a non-accessible private value.

Depends on the scope of default values, I'm not sure about this right now.
If they live in the callee scope it'll work fine.
If they live in the caller scope your constructor isn't callable from
outside of the module and your constructor should be private.

> The parameter types could also be private types which might not be accessible.

Same here your constructor should be private.


Old forum post on the topic of constructor inheritance.

http://forum.dlang.org/thread/fqk4jb$n76$1@digitalmars.com

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