FFI Bug - Finalizer always called with NULL pointer?

Bulat Ziganshin bulat.ziganshin at gmail.com
Sat Apr 8 07:04:50 EDT 2006


Hello Brian,

Saturday, April 8, 2006, 1:35:06 PM, you wrote:

>       Fun a = &foo;
>       Fun b = foo;  // same as above (in VC7)

> Therefore there is no bug anywhere. It is just that FFI has a high learning
> curve since it rests on extremely subtle but vital distinctions foreign to a
> C programmer... :-)

sorry but you just not very good know C. in the second case C
_implicitly_ converts "foo" to the "&foo", i.e. take address of
function instead of calling it


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Glasgow-haskell-users mailing list