Re: Issues with record and atom

2013-01-05 Thread Stephen Compall
On Sat, 2013-01-05 at 08:07 -0800, Christian Sperandio wrote: > (reset! (:parent child) parent) I'll decompose this so you can see where the overflow actually happens: user> (def reset-result (reset! (:parent child) parent)) #'user/reset-result user> reset-result StackOverflowError java.util.re

Re: Issues with record and atom

2013-01-05 Thread Christian Sperandio
I tried by using map instead of record and I've got the same issue. -- 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 y

Issues with record and atom

2013-01-05 Thread Christian Sperandio
Hi, I want to define a record that represents a tree items. The idea is each item is a component that can have parent and children. The parent and the children are components too, So, I define this record by: (defrecord Component [name children parent]) After, I declare 2 components: (def pare