On Wed, Sep 3, 2008 at 9:30 AM, Yitzchak Gale <[EMAIL PROTECTED]> wrote:
> I wrote
>>> Other applications and libraries that support the pragma -
>>> such as other compilers, and hs-plugins - would be
>>> required to respect the guarantee, and bugs could be
>>> filed against them if they don't.
>
> Sittampalam, Ganesh wrote:
>> If hs-plugins were loading object code, how would it even
>> know of the existence of the pragma? Given such
>> knowledge, how would it implement it?
>
> Good point. A compiler pragma is only that, in the end.
> This is just a hack, we can only do the best we can
> with it.

How does the FFI handle initialization? Presumably, we can link to
libraries that have internal state. Could someone, in principle, use
the FFI to create a global variable?

-- 
Dave Menendez <[EMAIL PROTECTED]>
<http://www.eyrie.org/~zednenem/>
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to