Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8187 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15772 invoked by uid 1010); 26 Feb 2004 21:05:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15737 invoked from network); 26 Feb 2004 21:05:12 -0000 Received: from unknown (HELO shiva.mind.de) (212.42.230.204) by pb1.pair.com with SMTP; 26 Feb 2004 21:05:12 -0000 Received: from [192.168.1.105] (pD95F8104.dip.t-dialin.net [217.95.129.4]) by shiva.mind.de (Postfix) with ESMTP id 5B88097B59; Thu, 26 Feb 2004 22:05:03 +0100 (CET) Date: Thu, 26 Feb 2004 22:03:04 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <751373122906.20040226220304@marcus-boerger.de> To: Philip Fletcher Cc: internals@lists.php.net In-Reply-To: <20040226205225.87119.qmail@pb1.pair.com> References: <20040226160254.4324.qmail@pb1.pair.com> <1051368455281.20040226204516@marcus-boerger.de> <20040226200755.99362.qmail@pb1.pair.com> <20040226205225.87119.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Iterator Class/foreach Logic Flaw? From: helly@php.net (Marcus Boerger) 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. Thursday, February 26, 2004, 9:43:40 PM, you wrote: > 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) ... -- Best regards, Marcus mailto:helly@php.net