I am putting together a framework that relies on bidirectional references, but am seeing problems in displaying the results. The default string output of a reference includes the referenced value, but if that refers back to the original reference you end up with an infinite loop and a stack overflow.
the following demonstrates this: ( def a ( ref :temp ) ) ( def b ( ref a ) ) ( dosync ( ref-set a b ) ) Does anyone know of a way to override this behaviour, perhaps by changing the default way that the referenced object is rendered as a string? Regards --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---