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. So, there is
> exactly one string. The "let" creates a new variable each time you call
> "test", but the variable is bound to the same string.
> 
> Mkstemp modifies the (one and only) string the first time.
> ...

Thanks Alan, I think it is the reason, so it worked using:

(let ((filename (string-copy "/tmp/XXXXXX"))
      (f (mkstemp! filename)))
      ...)

Regards

Betoes


_______________________________________________
Guile-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to