chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] using the compiler at runtime


From: John Cowan
Subject: Re: [Chicken-users] using the compiler at runtime
Date: Thu, 13 Nov 2008 11:23:59 -0500
User-agent: Mutt/1.5.13 (2006-08-11)

Tobia Conforto scripsit:

> Out of curiosity, is there a particular reason why you put the rm into  
> an exit handler, instead of removing the file right after loading it?

That's a Posix-only thing to do.  (Granted, "rm" isn't portable either,
but calling remove() would suffice here.)  On Windows, it's impossible to
remove an open file, and remove() would simply fail under MinGW.  Under
Cygwin, the behavior is funky: the Cygwin library hides the existence of
open files that have been removed, but to the Windows kernel they still
exist, and an attempt to create a new file of the same name will fail.

-- 
Normally I can handle panic attacks on my own;   John Cowan <address@hidden>
but panic is, at the moment, a way of life.      http://www.ccil.org/~cowan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]