Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48351 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72388 invoked from network); 19 May 2010 12:31:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 May 2010 12:31:44 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 74.125.83.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:49793] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/62-60865-D2AD3FB4 for ; Wed, 19 May 2010 08:31:43 -0400 Received: by gwb1 with SMTP id 1so2740913gwb.29 for ; Wed, 19 May 2010 05:31:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:mime-version:received:reply-to :in-reply-to:references:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=runq4Y2mgZ0FQDEChZpw+9nWoIfDTD6w71hTwlCMELo=; b=x3u2txvB0aCRopwiGTHW7/lEj0Tr9ThOzxqwcATna0Vysay5spHCen6nppV7y5ZYJD ptsHrHpJwhIxPjPunVsn1mMAmbucZwyblOALTrb4IveT9ohLP5x27TVWS4+Y/xTHfmjV aYgvekZxycQmf8syeZ+UHSre7WrhSma+mPs44= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=t2Z1W018bozSIDxAiO3qjSxbT7lRnY6K6hw2cfI7Pm885KPFUaFh/4Wxh5J7phcNm7 y/eYj06+0jyIrVz7jPjuRfhoyVVWFV1lmfQlXqEG5snkzFe/b1JmRbrqIPuq1IXsogLy LrilsQOm3+ULIFjoToVLlEVby6CrVQx+13qUY= Received: by 10.100.245.9 with SMTP id s9mr10391821anh.61.1274272297134; Wed, 19 May 2010 05:31:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.45.17 with HTTP; Wed, 19 May 2010 05:31:16 -0700 (PDT) Reply-To: RQuadling@googlemail.com In-Reply-To: <4BF3D925.4050906@easyflirt.com> References: <4BF2AE6C.2060403@easyflirt.com> <4BF3D925.4050906@easyflirt.com> Date: Wed, 19 May 2010 13:31:16 +0100 Message-ID: To: "mathieu.suen" Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Interface and abstract method From: rquadling@googlemail.com (Richard Quadling) On 19 May 2010 13:27, mathieu.suen wrote: > Ok so there is no real meaning behind the "abstract". > Thanks > > On 05/18/2010 05:55 PM, Tjerk Anne Meesters wrote: >> >> Normally, PHP won't allow access types for interface methods, but the >> reflection for SPL is defined inside the C code: >> >> static const zend_function_entry spl_funcs_OuterIterator[] =3D { >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 SPL_ABSTRACT_ME(OuterIterator, getInnerItera= tor, >> arginfo_recursive_it_void) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 {NULL, NULL, NULL} >> }; >> >> IMO the SPL_ME should be used instead, but I wouldn't be bothered about = it >> ;-) >> >> On Tue, May 18, 2010 at 11:12 PM, mathieu.suen >> =C2=A0wrote: >> >>> >>> Hi, >>> >>> In the SPL there is some interface that have abstract method: >>> >>> *Countable* { >>> /* Methods */ >>> abstract public int >>> count >>> ( void ) >>> } >>> >>> While some interface have "none abstract" method. >>> >>> *OuterIterator* extends Iterator >>> =C2=A0{ >>> /* Methods */ >>> public Iterator getInnerIterator >>> =C2=A0( vo= id ) >>> ..snip.. >>> } >>> >>> Does =C2=A0"abstract" keyword have a semantic? >>> >>> Thanks >>> >>> --Mathieu suen >>> >>> >>> >>> >>> >> >> >> > > -- Mathieu Suen > > > > Seemingly not when it applies to an interface. --=20 ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=3DZEND002498&r=3D213474= 731 ZOPA : http://uk.zopa.com/member/RQuadling