On Sun, Jul 5, 2009 at 8:05 PM, ataggart<alex.tagg...@gmail.com> wrote: > > A set might be better to hold the player-refs, then you can just call > (disj player-refs player-ref) without doing any extra checking.
Thanks, I llke that much better! > Also you can access ref values without needing to be in a dosync. > Things being immutable, the value you get from, say, @team-ref won't > change once you have it. Yeah, but in my case I am accessing more than one ref value inside each dosync and I want to make sure I get consistent values. For example, if a trade is being executed in one thread and one of the teams involved is being printed in another thread, I could get inconsistent output without the dosyncs. Thanks for the feedback! -- R. Mark Volkmann Object Computing, Inc. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---