From: "Simon Kröger" Date: 2006-07-21T05:45:31+09:00 Subject: Re: Using .each with constructors Ben Zealley wrote: > Simon Kr�ger wrote: >> btw i like >> >> a, b, c = (1..3).map {Object.new} > > Now that's elegant. Why would you only use it for immutable types? No, that's ok for normal objects, but a, b, c = [42] * 3 isn't, because: a, b, c = ["123"] * 3 b << '4' puts a # => 1234 a, b and c are referencing the same object. cheers Simon