Sigbjorn Finne wrote:
> Really? 'ByteArray Int' (and its mutable companion) is still
> available, but only if the user can guarantee that the 'import'ed
> call does not end up causing a GC, i.e., the following should work
> 
>   foreign import unsafe splat :: ByteArray Int -> IO ()
> 
> the "unsafe" bit being the vital piece of info.

Ooops, I forgot.  :-}  There was quite some mail traffic around this
topic...
 
> At least this was the story for 4.045, so unless 4.06 behaves
> differently (I doubt it), you can still use ByteArrays.

OK, but (Mutable)ByteArrays are so easy to implement given FFI (for
creation/access) + Foreign(Obj) (for finalization), that the effort
for maintaining, documenting, etc. them is at least a little bit
doubtful. "Make it simple!"  :-)

Cheers,
   Sven
-- 
Sven Panne                                        Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik                     FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen              Oettingenstr. 67
mailto:[EMAIL PROTECTED]            D-80538 Muenchen
http://www.informatik.uni-muenchen.de/~Sven.Panne

Reply via email to