prevent multiple calls to rt_term
Ellery Newcomer
ellery-newcomer at utulsa.edu
Mon Aug 13 17:01:40 PDT 2012
On 08/13/2012 03:37 PM, Sean Kelly wrote:
> On Aug 13, 2012, at 2:07 PM, Ellery Newcomer <ellery-newcomer at utulsa.edu> wrote:
>
>> On 08/13/2012 01:19 PM, Sean Kelly wrote:
>>> Sounds like what's needed is a call counter, so if rt_init is called N times, rt_term must be called N times before the runtime really terminates.
>>>
>>
>> is it valid to call rt_init more than once?
>
> Not currently.
>
I guess if it were made valid then module constructors would still be out?
IE if N shared libraries bring N sets of modules to the table and
rt_init is called N times, then what's to prevent some module
constructors from being run more than once?
More information about the Digitalmars-d-learn
mailing list