From: Eric Hodel Date: 2004-06-25T08:31:53+09:00 Subject: Re: Is it considered Harmful? --H7BnLk9CMipoMykF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sean O'Dell (sean@celsoft.com) wrote: > On Thursday 24 June 2004 16:15, rolo wrote: > > Hi > > > > obj.class =3D MyClass > > > > Is it harmful? >=20 > irb(main):002:0> {}.class =3D Array > NoMethodError: undefined method `class=3D' for {}:Hash > from (irb):2 > irb(main):003:0> Even if there was a #class=3D for objects, it ranks up there with goto in limited usefulness. Yes, it can be useful, but if you're using it, you're probably being too clever. --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --H7BnLk9CMipoMykF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFA22RnMypVHHlsnwQRAs3zAKCCOv2kRP4spvXCMnGQqykdfGWGqACfc1sE BgGcIuC6tY+nNvMUjeAjT6Y= =h++s -----END PGP SIGNATURE----- --H7BnLk9CMipoMykF--