private with module name support

Newbie2019 newbie2019 at gmail.com
Fri Aug 9 01:24:30 UTC 2019


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.





More information about the Digitalmars-d mailing list