
27 Oct
2008
27 Oct
'08
11:04 p.m.
t.r.willingham:
On Mon, Oct 27, 2008 at 10:07 PM, Don Stewart
wrote: Seems fine. You'll be working at a low level, with strict, mutable, unboxed data structures, but that's fine: the machine loves them.
Thanks for the quick reply. One last question -- is it at all possible to segfault with strict, mutable, unboxed structures? I don't quite understand how it knows not to overwrite or underwrite.
It depends on the operations (safe indexing or unsafe indexing). Being strict or unboxed doesn't determine the safety. So be careful if you have a 'Ptr a' or start using unsafeWrite. -- Don