From: Igor Sutton Lopes Date: 2007-06-29T09:05:04+09:00 Subject: Re: newby non/programmer trying to understand classes --Apple-Mail-13-757330140 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Jun 28, 2007, at 8:53 PM, Rob Biedenharn wrote: > # create a Hash where referencing a non-existent > # key makes its value an empty Array > names = Hash.new { |h,k| h[k] = [] } Can I assume this is equivalent to perl's autovivification? --Apple-Mail-13-757330140 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFGhEyXKuhQxiIVvZwRArtqAKDuKJ6XPgY4uz7vt/icGMJ25DhSwQCgwT09 pcXdabadWOCzOPZh28ck864= =r2I2 -----END PGP SIGNATURE----- --Apple-Mail-13-757330140--