This paste seems gone - anyone has it available? I seem to get bitten by this kind of thing in emacs using nrepl and it pretty printing something and it gets into an infinite loop locking up my emacs session completely. Running the same from command line i can see same behavior (seems related to protocols in my case, but haven't spent much time on it(). Either way I'd love to work out a way to avoid the cycles and this paste sounds good.
On Monday, January 18, 2010 10:21:52 PM UTC, Chouser wrote: > > > On Jan 18, 4:22 pm, Raoul Duke <rao...@gmail.com> wrote: > >> hi, > >> > >> hmmm, i wish there were a way (or that it was the default) to tell the > >> repl to not continue to loop for ever over things it has already > >> "printed" out when i eval something that is a cyclic thing. anybody > >> have a patch, or thought on this? > > On Mon, Jan 18, 2010 at 4:38 PM, Mark Hamstra > <markh...@gmail.com<javascript:>> > wrote: > > See *print-length* and *print-level* in the core API. > > Or if you want unlimited depth, but want to avoid printing the > value of any reference object more than once, you can try this > little thing I hacked together a while ago: > > http://paste.lisp.org/display/83647 > > Note that it has to keep a reference to every IDeref object it > sees while it's printing, in order to detect duplicates. > > --Chouser > http://joyofclojure.com/ > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.