> > ListElem = Struct.new :prev, :next, :data > l1 = ListElem.new > li.data = "foo" > l2 = ListElem.new > l2.prev = l1 > l1.next = l2 > l2.data = "bar" > p l1 > Ok, that works and solved my problem. Thanks. I also found this comment in one of the ruby getting started texts. > Ruby variables hold references to objects and the = operator copies > references. Now what about this ? b = 1 a = b b = 2 Shouldn't 'a' now contain 2 if the above statement is true? Clearly not every variable is a reference. -- Posted via http://www.ruby-forum.com/.