temp files, was: how to re-define the HOME directory?



On Thu, Jun 4, 2009 at 10:21 AM, Leo Butler <l.butler at ed.ac.uk> wrote:

> I came up with the following lisp code to imitate mktemp. I modified plot-temp-file from
> src/plot.lisp so that it now returns a name not already belonging to
> an existing file.

Leo, that's terrific. The one quibble I have is that the comment
says "Implements mkstemp.c in C-L" but the Lisp version just
returns the file name without creating the file (as mkstemp does).
There is a disclaimer following that statement which says the
file is not created, but it seems likely that "Implements mkstemp"
would be seen without the disclaimer. So I'll recommend that you
make the comment more accurate.

Also can you please put a copyright claim (for yourself) and a
license statement on it? S.t. like "Copyright Leo Butler 2009.
I release this work under terms of the GNU General Public License."
would be enough (for me, anyway). Of course as the author you
can pick whatever license terms you want; GPL makes it simpler
to include in Maxima, should we decide to import it.

best

Robert Dodier