From: "Kontra, Gergely" Date: 2002-10-25T20:09:16+09:00 Subject: Re: Things That Newcomers to Ruby Should Know (10/16/02) >you're just creating an object (which I would not consider an >intermediate object). I guess I think of intermediate object creation >as, for instance: > > a = [1,2,3] > b = a.map {|x| x * 2} .map {|x| x * 3} > >where there's an anonymous array being created en route to the >eventual creation of the array referred to by 'b'. BTW, ONE or TWO intermediate objects? So, a.map {|x| x*2} must be created, but right after the assignment will this object be deleted? Gergo +-[Kontra, Gergely @ Budapest University of Technology and Economics]-+ | Email: kgergely@mcl.hu, kgergely@turul.eet.bme.hu | | URL: turul.eet.bme.hu/~kgergely Mobile: (+36 20) 356 9656 | +-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+ . Magyar php mirror es magyar php dokumentacio: http://hu.php.net