From: "A. S. Bradbury" Date: 2006-09-08T23:44:33+09:00 Subject: Re: Puzzling bug with yielded array On Friday 08 September 2006 14:59, ara.t.howard@noaa.gov wrote: > your method first returns a list to the caller but, later, munges it in > place without the caller's consent. this is as evil as returning pointer > to member in c--. I really appreciate your detailed reply, the problem is very clear now and hopefully I've learnt from it. A more general question - how would you (ruby-talk readers) implement this method? Two people on #ruby-lang suggested I make it recursive, but I really don't see this sort of tree traversal mapping to a recursive method, am I wrong? Alex