Hongwei Xi <
gmh...@gmail.com> skribis:
> Normally, ATS compiler generates a function for each file
> that must be called before values and functions defined in
> the file can be used.
>
> If ATS_DYNLOADFLAG is set to 0, then such a function is not
> generated and the programmer needs to take care of issue of initialization
> on their own. Just like in C.
Yeah, I’m using ATS to make C libraries and so in those cases set
ATS_DYNLOADFLAG to 0 and invent workarounds to avoid having any ‘val’
at top level. (libatomic_ops could be useful for that BTW.)