On 2008 Sep 17, at 8:17, Manlio Perillo wrote:
The Python tempfile module, as an example, implements a wrapper
around mkstemp function that does exactly this, and the code is
portable; on Windows it uses O_TEMPORARY_FILE flag, on POSIX systems
the file is unlink-ed as soon as it is created (but note that the
code is not signal safe - well, many functions in the Python
standard library are not signal safe).
There are reasons why GHC library does not implement this?
POSIX doesn't guaranteed that open-and-unlink works; HP-UX is a
"POSIX" platform on which it doesn't.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university KF8NH
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe