Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30460 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55507 invoked by uid 1010); 5 Jul 2007 13:56:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 55480 invoked from network); 5 Jul 2007 13:56:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jul 2007 13:56:26 -0000 Authentication-Results: pb1.pair.com header.from=tony@tonybibbs.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=tony@tonybibbs.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain tonybibbs.com from 209.191.119.131 cause and error) X-PHP-List-Original-Sender: tony@tonybibbs.com X-Host-Fingerprint: 209.191.119.131 web704.biz.mail.mud.yahoo.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [209.191.119.131] ([209.191.119.131:21724] helo=web704.biz.mail.mud.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/7F-22840-388FC864 for ; Thu, 05 Jul 2007 09:56:23 -0400 Received: (qmail 33325 invoked by uid 60001); 5 Jul 2007 13:56:14 -0000 X-YMail-OSG: 4w5xU40VM1mIgbLSm17Xr8jRfZ3wHU_sIPb20G9WalV8AjO3t.p_GwFoSn4pkynjkt52_5gnZOEMjeZ3Ct823qRIO5e7foLFX64h0rL.bmIpRdKxibs- Received: from [216.51.246.190] by web704.biz.mail.mud.yahoo.com via HTTP; Thu, 05 Jul 2007 06:56:14 PDT X-Mailer: YahooMailRC/651.38 YahooMailWebService/0.7.41.16 Date: Thu, 5 Jul 2007 06:56:14 -0700 (PDT) To: PHP internals MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <737242.30279.qm@web704.biz.mail.mud.yahoo.com> Subject: Re: [PHP-DEV] Simple Namespace Proposal From: tony@tonybibbs.com (Tony Bibbs) As a PHP user also frustrated with lack and namespaces and having lurked he= re for a while I know there was a prior proposal and many countless, length= y discussions on separators and all. Have the prior proposals been invalid= ated? =0A=0A--Tony=0A=0A----- Original Message ----=0AFrom: Stefan Priebsc= h =0ATo: David Coallier =0AC= c: Dmitry Stogov ; PHP internals = =0ASent: Thursday, July 5, 2007 8:26:25 AM=0ASubject: Re: [PHP-DEV] Simple = Namespace Proposal=0A=0ADavid Coallier schrieb:=0A> I would probably be in = favor of throwing a notice or a warning when=0A> someone modifies a built-i= n function (or even throw an exception) and=0A> that way as soon as you do = such thing you would know right away that=0A> you modified something and yo= u would know where the modification=0A> happened which would make things mu= ch easier for people developing and=0A> debugging applications.=0A=0AThe pr= oblem is that this kind of overloading makes a nice feature as=0Awell. This= is runied by throwing an exception, and cautious developers=0Awill at leas= t get nervous when they see a notice.=0A=0AI could imagine that by adding s= omething like "overrides foo()" or=0A"overloads foo()" to a function/method= declaration the developer could=0Amake clear that he willingly overrides a= built-in function, and if this=0Ais missing, an exception is being thrown.= This may be a little over the=0Atop, however.=0A=0AKind regards,=0A=0AStef= an=0A=0A-- =0A >e-novative> - We make IT work for you.=0A=0A e-novative Gmb= H - HR: Amtsgericht M=FCnchen HRB 139407=0A Sitz: Wolfratshausen - GF: Dipl= . Inform. Stefan Priebsch=0A=0A http://www.e-novative.de=0A=0A-- =0APHP Int= ernals - PHP Runtime Development Mailing List=0ATo unsubscribe, visit: http= ://www.php.net/unsub.php=0A=0A=0A=0A