>>>>> "S" == Simon Strandgaard <0bz63fz3m1qt3001 / sneakemail.com> writes:

S> I fell into these pitfalls yesterday.. that a child was modifying a parent!

 You make a confusion : the child was not modifying the parent.

 An instance variable belongs to an object (i.e. B.new in your case).

S> class A
[...]
S> B.new.test1
S> B.new.test2

 add this

   p B.new.value

 and you'll have [1, 2, 3]


Guy Decoux