private with module name support

12345swordy alexanderheistermann at gmail.com
Fri Aug 9 01:40:01 UTC 2019


On Friday, 9 August 2019 at 01:24:30 UTC, Newbie2019 wrote:
> On Friday, 9 August 2019 at 01:17:28 UTC, Newbie2019 wrote:
>> Is this make any sense ?
>
>
> The app init function basic only call once, and call from the 
> app entry pointer,  do so can avoid other module unexpected 
> call component init function(right now I guard it with a global 
> inited var).
>
> I know class inheritance also can do the trick, but class has 
> extra cost so not suit for simple case.

Are you trying to implement the functionality as if it were C? 
Look into .di files.


More information about the Digitalmars-d mailing list