unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* strange mkstemp! behavior
@ 2004-09-13  8:24 Maarten Grachten
  2004-09-13  8:51 ` rm
  0 siblings, 1 reply; 11+ messages in thread
From: Maarten Grachten @ 2004-09-13  8:24 UTC (permalink / raw)


Hi guile people,

in 1.6.4, but also in 1.7.1 (didn't try others)  there seems to be
something wrong when using mkstemp! several times after another like this:

(define (look-at-this x)
	(let ((name "/tmp/XXXXXX"))
		(write-line name)
		(mkstemp! name)))

(map look-at-this '(1 2 3))

shows:

/tmp/XXXXXX
/tmp/8rDXlK
standard input:2255:17: In procedure mkstemp! in expression (mkstemp!
name):
standard input:2255:17: Invalid argument
ABORT: (system-error)

So it seems that the variable name is not rebound to the value specified
in let. I am aware that mkstemp! writes into the string provided as an
argument, but I suppose that the value changed by mkstemp! should not
persist through different calls of the function. Am I wrong?

Any reaction much appreciated.

Maarten Grachten


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-09-29 16:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-13  8:24 strange mkstemp! behavior Maarten Grachten
2004-09-13  8:51 ` rm
2004-09-13  9:21   ` Maarten Grachten
2004-09-13 14:15   ` Stephen Compall
2004-09-22  0:56     ` Marius Vollmer
2004-09-22 15:46       ` Stephen Compall
2004-09-22 20:28         ` Marius Vollmer
2004-09-22 16:11       ` Paul Jarc
2004-09-25 22:14       ` Kevin Ryde
2004-09-28 21:17         ` Marius Vollmer
2004-09-29 16:09           ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).