Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23273 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77009 invoked by uid 1010); 11 May 2006 20:08:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76994 invoked from network); 11 May 2006 20:08:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2006 20:08:48 -0000 X-PHP-List-Original-Sender: ralph@smashlabs.com X-Host-Fingerprint: 69.2.42.244 unknown Linux 2.4/2.6 Received: from ([69.2.42.244:38693] helo=users.smashlabs.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D7/60-19568-FC993644 for ; Thu, 11 May 2006 16:08:48 -0400 Received: (qmail 25282 invoked by uid 210); 11 May 2006 15:08:27 -0500 Received: from 66.179.208.36 by users.smashlabs.com (envelope-from , uid 201) with qmail-scanner-1.24st (perlscan: 1.24st. Clear:RC:0(66.179.208.36):. Processed in 0.068323 secs); 11 May 2006 20:08:27 -0000 X-Qmail-Scanner-Mail-From: ralph@smashlabs.com via users.smashlabs.com X-Qmail-Scanner: 1.24st (Clear:RC:0(66.179.208.36):. Processed in 0.068323 secs Process 2412) Received: from unknown (HELO ?216.136.107.158?) (ralph@smashlabs.com@66.179.208.36) by 244.42.ntg.com with AES256-SHA encrypted SMTP; 11 May 2006 15:08:26 -0500 Message-ID: <44639AEE.2020006@smashlabs.com> Date: Thu, 11 May 2006 15:13:34 -0500 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Sean Coates CC: Jasper Bryant-Greene , internals References: <446222C8.3090101@smashlabs.com> <44623E75.4070304@zend.com> <446273F7.2090702@iamjochem.com> <446370F9.9060105@smashlabs.com> <446391D4.4010600@album.co.nz> <44639486.4040500@album.co.nz> <446396D4.1060008@caedmon.net> In-Reply-To: <446396D4.1060008@caedmon.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP6 OOP compiler feature question / request From: ralph@smashlabs.com (Ralph Schindler) > In case you miss it, this discussion is about breakages within the > same major version. I am talking strictly from a Major Release standpoint, which is why I titled it PHP6 compiler features... ... My understanding is that this type of change would be slightly massive undertaking to the compiler. Essentially, its adding a context switch in the parser to allow certain words as methods within a class ONLY. An error should be thrown if someone is trying to redefine isset() in the global namespace. My reasoning being is that $baseball_player->catch() is a completely different context than try {} catch () {}. > possible to determine the context of a T_TRY token, but nonetheless, > it's bad practice to have functions named the same as reserved words Thats a matter of opinion. I think its bad practice to think up a method name that is less concise in naming than what should have been allowed. -ralph