On Wednesday, August 17, 2016 at 12:39:51 AM UTC-4, Kiran Pamnany wrote: > > The memory underlying this array needs to be managed by the C library (it > must be pinned and its location published to allow remote memory access). > I'd have to provide a specialized allocator, but even that wouldn't work > because I cannot fragment the array. So, making the type immutable isn't > possible for this purpose. >
This is fine. You can have an array of immutables whose memory is allocated in C. An array of immutables is just an array of structs. Replacing an element just overwrites that memory in an array, it doesn't involve any allocation.
