From: "Sean E. Russell" Date: 2004-12-02T22:40:01+09:00 Subject: Re: REXML::Functions.name == nil --nextPart4575835.A84SuRsuVy Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 29 November 2004 20:14, Florian Gro=DF wrote: > Not that I'm against changing REXML::Functions.name but this is > something that is frequently useful. REXML::Functions.name() is defined because name() is an XPath function, and= =20 REXML evaluates XPath functions using reflection. While this behavior may= =20 change in the future as a result of performance issues, currently that's ho= w=20 it works. The same goes for id(). While this may be poor form from an aesthetic view, it has very little=20 practical impact; nobody should be using the Functions class except the XPa= th=20 module. If a programmer does choose to use the class, then caveat lector. = =20 In fact, if there's any argument about the Functions class, it is whether t= o=20 make the entire thing private to REXML, rather than whether to rename metho= ds=20 so they don't conflict with expected behavior. =2D-=20 =2D-- SER "As democracy is perfected, the office of president represents,=20 more and more closely, the inner soul of the people. On some=20 great and glorious day the plain folks of the land will reach=20 their heart's desire at last and the White House will be adorned=20 by a downright moron." - H.L. Mencken (1180 - 1956) --nextPart4575835.A84SuRsuVy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQBBrxsrP0KxygnleI8RAkU4AJ4pDAel24HfIwuu1nXVGD8WetiKNACfQpA2 SQDlumesrtxQq/uBSJpLYho= =orjz -----END PGP SIGNATURE----- --nextPart4575835.A84SuRsuVy--