[Haskell-cafe] Re: [Haskell] Top Level <-

David Menendez dave at zednenem.com
Wed Sep 3 13:32:27 EDT 2008


On Wed, Sep 3, 2008 at 9:30 AM, Yitzchak Gale <gale at sefer.org> 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 <dave at zednenem.com>
<http://www.eyrie.org/~zednenem/>


More information about the Haskell-Cafe mailing list