Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31805 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81755 invoked by uid 1010); 21 Aug 2007 19:00:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 81735 invoked from network); 21 Aug 2007 19:00:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Aug 2007 19:00:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:36284] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/B1-05248-A563BC64 for ; Tue, 21 Aug 2007 15:00:43 -0400 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 73E5AC0DD16; Tue, 21 Aug 2007 12:00:39 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-1-170.neb.res.rr.com [76.84.1.170]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 17773C0DD19; Tue, 21 Aug 2007 12:00:38 -0700 (MST) Message-ID: <46CB36E6.4030600@chiaraquartet.net> Date: Tue, 21 Aug 2007 14:03:02 -0500 User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: Larry Garfield CC: internals@lists.php.net References: <46C9F217.8040804@chiaraquartet.net> <200708210039.26755.larry@garfieldtech.com> In-Reply-To: <200708210039.26755.larry@garfieldtech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] [PATCH] allowing multiple namespaces per file plus namespaces with brackets From: greg@chiaraquartet.net (Gregory Beaver) Larry Garfield wrote: > Greg: You say that the old java-package-style definition still works, in > addition to braces. I presume then that the following are equivalent: > > namespace foo; > > class Bar { > ... > } > ?> > > namespace foo { > class Bar { > ... > } > } > ?> > > What happens if you mix them? > > namespace baz; > > namespace foo { > class Bar { > ... > } > } > ?> compiler error - if you use namespace OneToRuleThemAll; then you can't additionally use namespace another {} > Would the compiler have a heart attack if someone did: > > namespace foo { > namespace baz { > class Bar { ... } > } > } > ?> compiler error Greg