iphone + LDC, a new ARM adventure
Dan Olson
zans.is.for.cans at yahoo.com
Sun Feb 9 00:04:30 PST 2014
"Kai Nacke" <kai at redstar.de> writes:
> Hi Dan!
>
> On Wednesday, 5 February 2014 at 07:32:05 UTC, Dan Olson wrote:
>>
>> The to *do* list will look something like:
>> - fix module ctors/dtors
>
> I think the that modules ctors/dtors are not calles may be a side
> effect of not having the right version identifier. As soon as you know
> what version identifier you need, please let me know. I'll add it
> asap.
I figured out why static this() wasn't working. I was calling rt_init()
in a __attribute__((constructor)) function. But then I noticed that LDC
builds the ModuleReference list with global ctors too. So odds were I
was calling rt_init() before all D modules were in the list. Calling
rt_init() from C main solved it.
More information about the digitalmars-d-ldc
mailing list