Re: alpha2 scheduled

From: Date: Thu, 28 Aug 2008 06:32:46 +0000
Subject: Re: alpha2 scheduled
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-40117@lists.php.net to get a copy of this message
On Thu, Aug 28, 2008 at 02:57, Felipe Pena <felipensp@gmail.com> wrote: > Hello Marcus, > > Em Qua, 2008-08-27 às 23:47 +0200, Marcus Boerger escreveu: >> Hello Hannes, >> >> Wednesday, August 27, 2008, 8:32:41 PM, you wrote: >> >> > On Tue, Aug 26, 2008 at 18:27, Lukas Kahwe Smith <mls@pooteeweet.org> wrote: >> >> - Curly braces support for namespaces (Marcus, not ready for alpha2) >> >> > Why not? I thought I saw a patch for this on the list recently (which >> > allowed both the current namespace foo; and namespace foo {} >> > syntaxes).. >> >> It was an incomplete patch that simply allowed the syntax but did not >> prevent code between two namespaces. > > > That my old patch prevent the code between namespaces, but it only allow > the syntax using { }. Then, I've updated it, now it allows both ({}, ;) > > Well, maybe it can be useful... > > Results using the patch: > > <?php > namespace a { > namespace b { > } > } > Fatal error: Nested namespace is not allowed in %s on line %d I'm really sorry, but I have to ask. Since you can detect that this is a nested namespace, why can't we allow it? namespace foo { class one {} namespace bar { class two {} } } becomes class foo::one and class foo::bar::two ? -Hannes

« previous php.internals (#40117) next »