note 87784 deleted from language.namespaces.nsconstants by danbrown
| From: | danbrown@php.net | Date: | Sun, 21 Dec 2008 17:36:50 +0000 |
| Subject: | note 87784 deleted from language.namespaces.nsconstants by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-148432@lists.php.net to get a copy of this message | ||
Note Submitter: brettz9 AAT yah
----
The following code is incorrect:
use blah\blah as mine; // see "Using namespaces: importing/aliasing"
blah\mine(); // calls function blah\blah\mine()
The latter would be true either if:
1) The first line were "use blah\blah as blah"
2) The first line were "use blah\blah"
3) The second line were "mine\mine();", but for contrast with the line following, this is
probably not intended.