From: Konrad Meyer Date: 2007-11-29T16:20:31+09:00 Subject: Re: Like python's dir(), except better... --nextPart2722717.gYBSXAZJHC Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Quoth Robert Dober: > On Nov 29, 2007 3:40 AM, MonkeeSage wrote: > Great idea! > I would however leave Object alone, and put all code into DirObject. > Thus DirObject has to explore Object which might be a little bit > harder and slower, but you definitely do not want to mess with Object, > right? > Just a short example of what I have in mind > __do_metadata("methods"n, do) becomes >=20 > def DirMethods#add_methods( of_object ) > of_object.methods ... >=20 > an_object.dir # which would be distroyed by overloading *very often* > anyway becomes >=20 > DirObject.new( an_object ). >=20 > Cheers > Robert Well, it's not like it's *wrong* to mess with object as long as you're not= =20 overwriting stuff. Or so it seems to me. Regards, =2D-=20 Konrad Meyer http://konrad.sobertillnoon.com/ --nextPart2722717.gYBSXAZJHC Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHTmg9CHB0oCiR2cwRAsm1AKCCfalEMfGyrg2wwBZN71V4GOGplACfZ94K rb6fle/x9vEyEj2FOjoQGjE= =//FH -----END PGP SIGNATURE----- --nextPart2722717.gYBSXAZJHC--