[Top][All Lists]

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

Re: mkstemp strange behavior

From: Tomas Zerolo
Subject: Re: mkstemp strange behavior
Date: Fri, 12 Aug 2005 10:03:42 +0200
User-agent: Mutt/1.5.6+20040907i

On Wed, Aug 10, 2005 at 04:24:47PM -0300, Jos? Roberto B. de A. Monteiro wrote:
> On Wed, Aug 10, 2005 at 01:54:31PM -0400, Alan Grover wrote:
> > I ran into this too. My reasoning was something like:
> > 
> > The string, "/tmp/XXXXXX" is constructed at reader time. [...]
> Thanks Alan, I think it is the reason, so it worked using:
> (let ((filename (string-copy "/tmp/XXXXXX"))
>       (f (mkstemp! filename)))
>       ...)

Shouldn't that be (let*...)?

(Reminder: with let* later bindings can `see' earlier ones, and you want
this with f).

-- tomás

Attachment: signature.asc
Description: Digital signature

reply via email to

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