Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8188 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32266 invoked by uid 1010); 26 Feb 2004 21:13:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32216 invoked by uid 1007); 26 Feb 2004 21:13:55 -0000 Message-ID: <20040226211355.32213.qmail@pb1.pair.com> To: internals@lists.php.net Date: Thu, 26 Feb 2004 21:05:09 +0000 References: <20040226160254.4324.qmail@pb1.pair.com> <1051368455281.20040226204516@marcus-boerger.de> <20040226200755.99362.qmail@pb1.pair.com> <20040226205225.87119.qmail@pb1.pair.com> <751373122906.20040226220304@marcus-boerger.de> Lines: 21 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) Hi Marcus Yes, the current implementation of hasMore() has an identical semantic to isValid(). The generally understood semantic of isValid() and hasMore() are quite different - hence the need for the rename. Regards Philip Marcus Boerger wrote: > Hello Philip, > > just to make it clear. hasMore() would be the exact same then isValid() > only the name would change. The semantic is already what you refer to as > isValid. >