Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8186 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87145 invoked by uid 1010); 26 Feb 2004 20:52:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 87120 invoked by uid 1007); 26 Feb 2004 20:52:25 -0000 Message-ID: <20040226205225.87119.qmail@pb1.pair.com> To: internals@lists.php.net Date: Thu, 26 Feb 2004 20:43:40 +0000 References: <20040226160254.4324.qmail@pb1.pair.com> <1051368455281.20040226204516@marcus-boerger.de> <20040226200755.99362.qmail@pb1.pair.com> Lines: 9 Organization: Stutchbury User-Agent: KNode/0.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Posted-By: 62.49.23.238 Subject: Re: [PHP-DEV] Iterator Class/foreach Logic Flaw? From: philip@stutchbury.com (Philip Fletcher) Sorry for follow-up to myself, but it would be somewhat easier to just rename hasMore() to isValid() and then implement hasMore() after PHP5 goes gold. Philip Fletcher wrote: > Whilst I appreciate adding an isValid() method to the Iterator interface > is not trivial (and I am loath to suggest a change this close to PHP RC > phase) ...