Changes between Version 8 and Version 9 of Language/Declarations

Show
Ignore:
Timestamp:
06/25/09 02:21:35 (5 years ago)
Author:
benl (IP: 150.203.160.45)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Language/Declarations

    v8 v9  
    9494Foreign imports define the type of an external symbol. 
    9595 
    96 Foreign data imports import a type name from C land. If no kind is given then the kind is assumed to be * (value types). For example: 
    97  
    98 {{{ 
    99 foreign import data "String" String# :: % -> % 
     96Foreign data imports import a type name from C land. If a kind is given then its resulting kind must be *. If no kind is given then it is assumed to be *. For example: 
     97 
     98{{{ 
     99foreign import data "String" String# :: % -> * 
    100100foreign import data "Int32"  Int32# 
    101101}}}