Re: autoload with namespace

From: Date: Wed, 02 Apr 2008 19:48:10 +0000
Subject: Re: autoload with namespace
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-272462@lists.php.net to get a copy of this message
Colin Guthrie wrote:
Ryan Panning wrote:
Your idea for replacing '::' with '/' is good but I'd think it'll interfere with the arithmetic operator '/'. I'm sure they must have discussed such options.
He didn't mean doing that in the code syntax, just in the autoload function to convert it to a filename :)
Is this something I should bring up on the internals? I think it is an issue, autoload not being able to know if it's class or namespace related. However, I think the call for namespace functions and constants is good, just need to know it's for namespaces... Gives you the opportunity to load the missing files.
If you look in the list archives there is a very thorough and detailed writeup from Martin Alterisio just after xmas on this topic: http://marc.info/?l=php-internals&m=119864555003877&w=2 This will perhaps make you think about discussing on internals. Col
I read too fast I guess. :) Did they ever talk about a different delimiter? Now that you bring up that internals post, I remember when that was brought up. It talks about autoload rules issues and possible enhancements. But not about the issue of determining the namespace call vs class call. I just think if I post it to the internals they'll just brush it off as something that I need to worry about. Rather than really thinking about issue and solutions, such as a different delimiter.

« previous php.general (#272462) next »