Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66971 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61655 invoked from network); 5 Apr 2013 10:48:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Apr 2013 10:48:26 -0000 X-Host-Fingerprint: 86.14.252.140 cpc3-asfd3-2-0-cust139.1-2.cable.virginmedia.com Received: from [86.14.252.140] ([86.14.252.140:9157] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/80-57919-9FBAE515 for ; Fri, 05 Apr 2013 05:48:25 -0500 To: internals@lists.php.net,Madara Uchiha Message-ID: <515EABF4.8070401@php.net> Date: Fri, 05 Apr 2013 11:48:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 86.14.252.140 Subject: Re: Inconsistency in class definition/usage order From: krakjoe@php.net (Joe Watkins) On 04/05/2013 11:39 AM, Madara Uchiha wrote: > After I saw this question on Stack Overflow: > http://stackoverflow.com/questions/15688642/how-does-a-class-extension-or-interface-work, > I realized that the guy was right. > > Is there an explanation for this, or is it just one of those things > that got overlooked? > > Should something be done? (i.e. enforcing class usage only after definition?) > Interfaces must be declared before being referenced. Joe