[Issue 4636] scoped + private constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 11 08:17:56 PDT 2013


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


Dicebot <public at dicebot.lv> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |public at dicebot.lv


--- Comment #2 from Dicebot <public at dicebot.lv> 2013-09-11 08:17:54 PDT ---
This is invalid as per current D specification but once again highlights
fundamental flaw of protection attribute resolution done from definition scope
for templates.

Semantically it is the same module who constructs the Foo and access to private
constructor is expected. But in fact it is done in `scoped` body which does
reside in different module and this does not have access.

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