At 2001-09-20 19:32, Manuel M. T. Chakravarty wrote: >What I meant with the remark that you quote is that if you >would use > > foreign import foo :: Ptr Int -> IO Float > >with > > float foo (float *x) > { > return *x; > } > >the system will not complain, but your program may dump >core. What if the C looked like this: float foo (int *x) { return *x; } ...? -- Ashley Yakeley, Seattle WA _______________________________________________ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
- Re: Ptr and ForeignPtr Questions Manuel M. T. Chakravarty
- RE: Ptr and ForeignPtr Questions Simon Marlow
- Re: Ptr and ForeignPtr Questions Ashley Yakeley
- Re: Ptr and ForeignPtr Questions Manuel M. T. Chakravarty
- RE: Ptr and ForeignPtr Questions Ashley Yakeley
- Re: Ptr and ForeignPtr Questions Ashley Yakeley
- RE: Ptr and ForeignPtr Questions Simon Marlow
- RE: Ptr and ForeignPtr Questions Ashley Yakeley
- Re: Ptr and ForeignPtr Questions Ashley Yakeley
- Re: Ptr and ForeignPtr Questions Manuel M. T. Chakravarty
- Re: Ptr and ForeignPtr Questions Ashley Yakeley
- Re: Ptr and ForeignPtr Questions Manuel M. T. Chakravarty
- Re: Ptr and ForeignPtr Questions Ashley Yakeley
- Re: Ptr and ForeignPtr Questions Manuel M. T. Chakravarty
- Re: Ptr and ForeignPtr Questions Ashley Yakeley
- Re: Ptr and ForeignPtr Questions Manuel M. T. Chakravarty
- Re: Ptr and ForeignPtr Questions Ashley Yakeley
- Re: Ptr and ForeignPtr Questions Manuel M. T. Chakravarty
- Re: Ptr and ForeignPtr Questions Marcin 'Qrczak' Kowalczyk
- Re: Ptr and ForeignPtr Questions Ashley Yakeley
- Re: Ptr and ForeignPtr Questions Manuel M. T. Chakravarty