[Haskell-cafe] FFI basics
bulat.ziganshin at gmail.com
Sat Feb 10 04:52:49 EST 2007
Saturday, February 10, 2007, 11:21:58 AM, you wrote:
>> foreign import ccall "mysin.h mysin"
>> c_mysin :: Double -> Double
> Shouldn't that be CDouble? At least for Int/CInt you can hit troubles on
> 64 bit machines...
conceptually - yes. practically, it should be the same for all current
platforms. of course, for maintained programs it's better to use safer
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe