Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23948 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86459 invoked by uid 1010); 5 Jun 2006 00:33:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86444 invoked from network); 5 Jun 2006 00:33:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2006 00:33:33 -0000 X-PHP-List-Original-Sender: michael@wakeless.net X-Host-Fingerprint: 66.249.92.172 ug-out-1314.google.com Linux 2.4/2.6 Received: from ([66.249.92.172:50757] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id BF/01-00946-CDB73844 for ; Sun, 04 Jun 2006 20:33:33 -0400 Received: by ug-out-1314.google.com with SMTP id m2so1321756ugc for ; Sun, 04 Jun 2006 17:33:29 -0700 (PDT) Received: by 10.78.47.9 with SMTP id u9mr771308huu; Sun, 04 Jun 2006 17:33:28 -0700 (PDT) Received: by 10.78.31.3 with HTTP; Sun, 4 Jun 2006 17:33:28 -0700 (PDT) Message-ID: Date: Mon, 5 Jun 2006 10:33:28 +1000 To: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19457_2721497.1149467608836" References: <795156743.20060603134212@marcus-boerger.de> <754ED3FF-418F-4E7F-A7A8-B1C0A1B59AFB@gravitonic.com> Subject: Re: [PHP-DEV] Missing __toString() part From: michael@wakeless.net ("Michael Gall") ------=_Part_19457_2721497.1149467608836 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/5/06, Adam Maccabee Trachtenberg wrote: > > For example, for an eBay Item object, my __toString() returns the > Title, but that's not unique, so my __toHash() returns the numeric ID, > which is. While I wouldn't be surprised if you completely ignore my opinion, however I think the __toHash implementation should happen in an interface, rather than happening automagically. That will make it just a little bit more predicatable. Michael ------=_Part_19457_2721497.1149467608836--