Simulating sub types
JS
js.mdnq at gmail.com
Fri Aug 2 07:07:18 PDT 2013
On Friday, 2 August 2013 at 13:57:08 UTC, Dicebot wrote:
> 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.
ok, then that is exactly what I want.
Thanks.
More information about the Digitalmars-d-learn
mailing list