Re: [PHP] autoload with namespace

2008-04-02 Thread Larry Garfield
On Wednesday 02 April 2008, Jochem Maas wrote: > > there is one curiosity / caveat underlying the 5.3 implementation... so > > does the namespace get supplied to the autoload function as well as the > > class name? is it just one big string or are they separate? > > one big string. how does php

Re: [PHP] autoload with namespace

2008-04-02 Thread Ryan Panning
Richard Heyes wrote: err-um sorry for the noise; actually the namespaces work w/ functions as well. So not OO specific? Is there anything I can read that describes them? Yes, it's on the docs site. Although this continues to change as I believe brackets {} are now the declaration method (but

Re: [PHP] autoload with namespace

2008-04-02 Thread Richard Heyes
err-um sorry for the noise; actually the namespaces work w/ functions as well. So not OO specific? Is there anything I can read that describes them? -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] autoload with namespace

2008-04-02 Thread Nathan Nobbe
On Wed, Apr 2, 2008 at 12:44 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Wed, Apr 2, 2008 at 12:25 PM, Richard Heyes <[EMAIL PROTECTED]> > wrote: > > > Playing around with dev PHP 5.3 and namespaces > > > > > > > PHP 5.3 will have namespaces? > > > ya; that and late static binding are like t

Re: [PHP] autoload with namespace

2008-04-02 Thread Nathan Nobbe
On Wed, Apr 2, 2008 at 12:25 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > Playing around with dev PHP 5.3 and namespaces > > > > PHP 5.3 will have namespaces? ya; that and late static binding are like the two headliners. both oo btw ;) -nathan

Re: [PHP] autoload with namespace

2008-04-02 Thread Ryan Panning
Jochem Maas wrote: essentially it boils down to replacing '::' with '/' to determine the path from the namespace in your case - that is easy enough, your still stuck with finding out whether your being asked to load a namespace, class, or function (do namespaced functions even trigger an autolo

Re: [PHP] autoload with namespace

2008-04-02 Thread Richard Heyes
Playing around with dev PHP 5.3 and namespaces PHP 5.3 will have namespaces? -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] autoload with namespace

2008-04-02 Thread Jochem Maas
Nathan Nobbe schreef: On Tue, Apr 1, 2008 at 8:28 PM, Ryan Panning <[EMAIL PROTECTED]> wrote: I haven't been keeping an eye on this list so if this has come up before please point me in the right direction. :) Playing around with dev PHP 5.3 and namespaces, I'm finding it hard to write an auto

Re: [PHP] autoload with namespace

2008-04-02 Thread Nathan Nobbe
On Tue, Apr 1, 2008 at 8:28 PM, Ryan Panning <[EMAIL PROTECTED]> wrote: > I haven't been keeping an eye on this list so if this has come up before > please point me in the right direction. :) > > Playing around with dev PHP 5.3 and namespaces, I'm finding it hard to > write an autoload function. S