If Mike doesn't want to use namespaces, then Mike shouldn't use Jessies package.
Bob > -----Original Message----- > From: Bart de Boer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 30, 2005 11:45 PM > To: internals@lists.php.net > Subject: [PHP-DEV] Re: Desired namespace behavoir > > >> Let's say: Mike doesn't want to use namespaces but he wants to use a > >> package from Jessie. Jessie uses namespaces. Mike has his PHP > configured > >> to "auto-prefix-import" everything. So if he uses your file foo.php > >> containg > >> > >> namespace JessieStuff{ class Foo { ... } } > >> > >> in conjunction with this setting would enable him to > >> > >> require_once('foo.php'); > >> $x=new JessieStuff_Foo(); > > So, if namespace JessieStuff contains multiple classes. They would all > become JessieStuff_ClassName. > > Assuming the package relies on its own classes, it wouldn't be able to > call them anymore because all their names have changed. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php