Changes between Version 1 and Version 2 of UnpackingArrays


Ignore:
Timestamp:
Sep 21, 2011 5:20:07 AM (4 years ago)
Author:
simonmar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UnpackingArrays

    v1 v2  
    8787== Construction ==
    8888
    89 ToDo
     89(ToDo: we have no idea what to do here... yet)
     90
     91{{{
     92prim :: Int# -> a -> UnpackedArray# a
     93
     94C a ...
     95}}}
     96
     97{{{
     98newInteriorArrayContainer# :: Addr# -- info pointer
     99                           -> a     -- initial element to fill the array with
     100                           -> InteriorArray# a
     101}}}
     102
     103This would make a constructor with the given info table.  The primop can tell how big the constructor is by looking at the info table.
     104
    90105
    91106== GC things ==