ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-dev
php-dev
RE: [PHP-DEV] Simple Namespace Proposal
by Dmitry Stogov other posts by this author
Jul 8 2007 11:39PM messages near this date
Re: [PHP-DEV] Re: SPL as non-disablable extension (Was: Re: [PHP-DEV] Simple Namespace Proposal) | Re: [PHP-DEV] Simple Namespace Proposal
>  -----Original Message-----
>  From: Stefan Priebsch [mailto:stefan.priebsch@[...].de] 
>  Sent: Sunday, July 08, 2007 3:51 PM
>  To: Dmitry Stogov
>  Cc: 'Sebastian Bergmann'; internals@[...].net
>  Subject: Re: [PHP-DEV] Simple Namespace Proposal
>  
>  
>  Hi Dmitry,
>  
>  I am merging together your various posts:
>  
>  > Note that multiple files in namespace won't allow autoloading.
>  Can you please explain why that is so?

Now autoloading maps class name into file name, however if you have several
classes in one file, only one of them may be autoloaded(). The same with
namespaces.

Dmitry.

>  
>  > function namespace_name($name) {
>  >  return __NAMESPACE__ . "::" . $name;
>  >}
>  Thanks for posting this - I am not sure wether this would do 
>  the trick in my case, though, since would need to calculate a 
>  fully-qualified name from *outside* the current namespace. BUT:
>  
>  
>  > Putting multiple namespaces in one file is really unusual 
>  case. It may 
>  > be implemented, but I don't like to do it, because it may give more 
>  > mess then advantage.
>  Right. As I said before, I'd like to have this if it is not 
>  difficult to do. Given the recent discussion with Rasmus 
>  about caching I think that y original idea of glueing 
>  together files to improve performance will go down the drain 
>  anyway. Bottom line: I'm with you.
>  
>  
>  Kind regards,
>  
>  Stefan
>  
>  -- 
>   >e-novative> - We make IT work for you.
>  
>   e-novative GmbH - HR: Amtsgericht München HRB 139407
>   Sitz: Wolfratshausen - GF: Dipl. Inform. Stefan Priebsch
>  
>   http://www.e-novative.de
>  

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Dmitry Stogov
Derick Rethans
Dmitry Stogov
Dmitry Stogov
dz
David Coallier
Guilherme Blanco
Stanislav Malyshev
Dmitry Stogov
Markus Fischer
Stanislav Malyshev
Stanislav Malyshev
Stanislav Malyshev
Giedrius D
Stanislav Malyshev
Giedrius D
Stanislav Malyshev
Giedrius D
Andrew Minerd
Stanislav Malyshev
David Coallier
Chris#
Dmitry Stogov
nicobn
Chris#
Chrish
Dmitry Stogov
Andrei Zmievski
Stefan Priebsch
Stanislav Malyshev
Richard Lynch
Dmitry Stogov
Stanislav Malyshev
Andrei Zmievski
Stefan Priebsch
Stanislav Malyshev
Stefan Priebsch
Richard Lynch
Stefan Priebsch
Jani Taskinen
David Coallier
Robert Cummings
Richard Lynch
Stanislav Malyshev
Lukas Kahwe Smith
Derick Rethans
Stefan Priebsch
Stanislav Malyshev
Derick Rethans
Stanislav Malyshev
Stanislav Malyshev
Stanislav Malyshev
Dmitry Stogov
Stefan Priebsch
Dmitry Stogov
Jeremy Privett
Stanislav Malyshev
nicobn
Tony Bibbs
Stanislav Malyshev
Stefan Priebsch
David Coallier
Rich Buggy
Stanislav Malyshev
Stefan Priebsch
David Coallier
Dmitry Stogov
Andrei Zmievski
Hans Lellelid
dz
Guilherme Blanco
Alexey Zakhlestin
Stanislav Malyshev
Jeremy Privett
Dmitry Stogov
Arpad Ray
Dmitry Stogov
Stanislav Malyshev
Markus Fischer
David Coallier
Stanislav Malyshev
Brian Moon
Dmitry Stogov
Stanislav Malyshev
Brian Moon
Stanislav Malyshev
Dmitry Stogov
Stefan Walk
Dmitry Stogov
David Coallier
Dmitry Stogov
Stefan Priebsch
Stanislav Malyshev
Stefan Priebsch
Larry Garfield
Dmitry Stogov
Larry Garfield
Dmitry Stogov
Derick Rethans
Dmitry Stogov
nicobn
Sebastian Bergmann
Dmitry Stogov
nicobn
Rasmus Lerdorf
Lucas Nealan
Stefan Priebsch
Rasmus Lerdorf
Stefan Priebsch
Sebastian Bergmann
Stefan Priebsch
Dmitry Stogov
Sebastian Bergmann
Stanislav Malyshev
davidc
Stanislav Malyshev

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved