[Haskell-cafe] carry "state" around ....

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sat Jul 19 17:23:01 EDT 2008


On 2008 Jul 19, at 16:42, Galchin, Vasili wrote:

>       You lost me .... can you explain what an opaque aiocb would  
> look like?


In Haskell, it's a ForeignPtr --- you can't see "inside" it except by  
FFI calls.  Although Duncan is correct and you can use an FFI  
preprocessor to access the portable fields, and simply not provide  
access to the rest from Haskell.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080719/19db63a8/attachment.htm


More information about the Haskell-Cafe mailing list