Thanks for the answer.

> Wrapping a mutable thing like an output stream in an agent seems  
> dubious to me.

It was intended to use an agent here since I need to control the  
access to the write object. But what I forgot was

' the validator succeeds or if no validator was given, the return  
value of the given fn will become the new state of the Agent.'

The function that was called by the agent returned nil, so the writer  
object was lost.

But as you said it is better to pass the out object  instead of the  
agent anyway.

Regards
   Roger



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to