Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28306 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25591 invoked by uid 1010); 9 Mar 2007 07:58:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 25576 invoked from network); 9 Mar 2007 07:58:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2007 07:58:05 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 82.94.239.5 cause and error) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Received: from [82.94.239.5] ([82.94.239.5:56540] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/42-29592-B8311F54 for ; Fri, 09 Mar 2007 02:58:05 -0500 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id l297vwxx017985; Fri, 9 Mar 2007 08:57:58 +0100 Date: Fri, 9 Mar 2007 08:57:25 +0100 (CET) X-X-Sender: derick@localhost To: Ralph Schindler cc: internals In-Reply-To: <45F07AA2.9060007@smashlabs.com> Message-ID: References: <45F076AE.8010001@smashlabs.com> <45F07834.1020801@zend.com> <45F07AA2.9060007@smashlabs.com> X-Face: "L'&?Ah3MYF@FB4hU'XhNhLB]222(Lbr2Y@F:GE[OO;"F5p>qtFBl|yVVA&D{A(g3[C}mG:199P+5C'v.M/u@Z\![0b:Mv.[l6[uWl' MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Class name clashing From: derick@php.net (Derick Rethans) On Thu, 8 Mar 2007, Ralph Schindler wrote: > Stanislav Malyshev wrote: > > > Is it still the position of internals that reserved words cannot be used > > > as method names or class names? > > > > Why allow it? It would probably require substantial change in the parser, > > and what for? > > > > I guess so that we can have a language that will be able to model real world > problems... instead of the real world changing the name of the problem to fit > the language. You should prefix your classes in the first place, as per: http://www.php.net/manual/en/userlandnaming.php especially point 1 of: http://www.php.net/manual/en/userlandnaming.rules.php regards, Derick