Changes between Version 1 and Version 2 of ForeignData


Ignore:
Timestamp:
Dec 1, 2005 4:09:55 AM (8 years ago)
Author:
john@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ForeignData

    v1 v2  
    88 
    99{{{ 
    10 foreign space <n> :: Ptr <type> 
     10foreign space [const] <n> :: Ptr <type> 
    1111}}} 
    1212 
     
    1717if the type is 'forall a . Ptr a' then the size will be assumed to be one byte. 
    1818 
     19if 'const' is specified then that is an assertion the contents of memory there will never change and the haskell compiler may make use of that and the data may be allocated in the shared among processes, read-only data segment. 
     20 
    1921=== initialized data === 
    2022 
     
    2325{{{ 
    2426 
    25 foreign space <n> :: Ptr <type> = constant 
     27foreign space [const] <n> :: Ptr <type> = constant 
    2628 
    2729where constant may be one of