Changes between Version 16 and Version 17 of BlockObjects


Ignore:
Timestamp:
Aug 25, 2011 11:39:12 AM (3 years ago)
Author:
chak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BlockObjects

    v16 v17  
    1212In C, we might use this function as described in Apple's introduction to blocks: [http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Blocks/Articles/bxGettingStarted.html#//apple_ref/doc/uid/TP40007502-CH7-SW2 Using a Block Directly].  We would like to be able to do the same in Haskell by declaring: 
    1313{{{ 
    14 foreign import ccall qsort_b "stdlib.h" :: Ptr a -> CSize -> CSize -> (Ptr a -> Ptr a -> Int) -> IO () 
     14foreign import ccall "stdlib.h" qsort_b :: Ptr a -> CSize -> CSize -> (Ptr a -> Ptr a -> Int) -> IO () 
    1515 
    1616myCharacters = ["TomJohn", "George", "Charles Condomine"]