Simulating sub types

Dicebot public at dicebot.lv
Fri Aug 2 06:57:07 PDT 2013


On Friday, 2 August 2013 at 13:37:09 UTC, JS wrote:
> Then that doesn't help. Do you mean A.B is not visible outside 
> the module either? Can B be instantiated and inherited when 
> static, if not then it is no use.

Yes, A will act simply as a "namespace". If B is public, it can 
be accessed and instantiated from other modules. All static does 
here is removing hidden context pointer.


More information about the Digitalmars-d-learn mailing list