On Thu, Aug 28, 2008 at 02:57, Felipe Pena <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to