Re: Foreign Function Interface (FFI)

2003-11-28 Thread Rafael Martinez Torres
> Well, similar ideas have been brought up before, and I'm a bit > sceptical: > *) Why should we introduce a feature at the language level for solving > a problem that is already solved by MVars? You can write your own > combinators to reduce the hassle of using MVars to a minimum. Firstly, thank

Re: Foreign Function Interface (FFI)

2003-11-28 Thread Wolfgang Thaller
(follow-ups to the FFI list please) Rafael Martinez Torres wrote: HI: Reading Haskell 98 FFI report, one question arised: Imported and declared a foreign function , via foreign import ccall foo:: IO(CInt) Is it guaranteed to be executed in atomic way ? I mean , should it block the whole STG s

Foreign Function Interface (FFI)

2003-11-28 Thread Rafael Martinez Torres
HI: Reading Haskell 98 FFI report, one question arised: Imported and declared a foreign function , via foreign import ccall foo:: IO(CInt) Is it guaranteed to be executed in atomic way ? I mean , should it block the whole STG system ? Idea: To implement a monitor , in a "external context" , an