RE: [PHP-DEV] Simple Namespace Proposal
| From: | Jeremy Privett | Date: | Sat, 21 Jul 2007 18:39:57 +0000 |
| Subject: | RE: [PHP-DEV] Simple Namespace Proposal | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-31150@lists.php.net to get a copy of this message | ||
> 3 - How will PHP behavior on a situation that you have a naming conflict?
>
> Something like...
>
> <?php
> class Bar { ... }
>
> <?php
> namespace Foo {
> class Bar { ... }
> }
>
> <?php
> import Foo;
>
> $b = new Bar();
Well, PHP's namespaces don't behave like every other language I've ever used that
supports namespaces. So, the code snippet you used here wouldn't work, anyway.
Jeremy