Re: my last attempt at sanity with namespaces
| From: | Greg Beaver | Date: | Fri, 17 Oct 2008 00:15:31 +0000 |
| Subject: | Re: my last attempt at sanity with namespaces | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41176@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
> Hi!
>
>> if ($testing) {
>> use class testing::PDO;
>> } else {
>> use class ::PDO;
>> }
>
> No, I don't think this would work since use is compile-time statement.
use is also a top_statement, which means it cannot be inside {} at all.
Greg