[Haskell-cafe] Semantics of ForeignPtr Finalizers
Bas van Dijk
v.dijk.bas at gmail.com
Sun Jun 19 17:03:16 CEST 2011
> On Jun 19, 2011 9:58 AM, "Antoine Latter" <aslatter at gmail.com> wrote:
>> I'd be afraid of optimizations getting ride of the constructor, and since
>> I'm not using all of the fields I would no longer have a reference to the
>> foreign ptr.
>>
>> Since withForeignPtr touches the foreign pointer the optimizations won't
>> make it go away no matter how it transfoms the function.
Good point.
I already made the necessary fixes to my usb library in the
ForeignPtrFix branch:
https://github.com/basvandijk/usb/tree/ForeignPtrFix
I think I'll merge it with master.
Thanks,
Bas
More information about the Haskell-Cafe
mailing list