
19 Jun
2011
19 Jun
'11
11:03 a.m.
On Jun 19, 2011 9:58 AM, "Antoine Latter"
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