Re: [PHP-DEV] Re: namespace separator and whining

2008-10-26 Thread Steph Fox
Hi lover, (sorry, couldn't resist) The correct syntax is: Note that static class elements are accessed using T_DOUBLE_COLON (::), and that the namespace separator \ is used to join namespace and element name. OK... thanks for the clarification. That does actually make perfect sense to me,

Re: [PHP-DEV] Re: namespace separator and whining

2008-10-26 Thread Robert Cummings
On Sun, 2008-10-26 at 21:46 -0500, Greg Beaver wrote: > Robert Cummings wrote: > > On Mon, 2008-10-27 at 09:28 +1030, Andrew Mason wrote: > >> So can I just confirm that what was previously > >> > >> >> > >> $x = new Framework::Utils::Foo(); > >> $y = new Project::PEAR:

Re: [PHP-DEV] Re: namespace separator and whining

2008-10-26 Thread Greg Beaver
Robert Cummings wrote: > On Mon, 2008-10-27 at 09:28 +1030, Andrew Mason wrote: >> So can I just confirm that what was previously >> >> > >> $x = new Framework::Utils::Foo(); >> $y = new Project::PEAR::Bar( 'somestring' ); >> >> >> ?> >> >> is now >> >> > >>

Re: [PHP-DEV] Re: namespace separator and whining

2008-10-26 Thread Steph Fox
Hi Rob, Wouldn't it be: Yes, as I understand it. - Steph -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: namespace separator and whining

2008-10-26 Thread Robert Cummings
On Mon, 2008-10-27 at 09:28 +1030, Andrew Mason wrote: > So can I just confirm that what was previously > > > $x = new Framework::Utils::Foo(); > $y = new Project::PEAR::Bar( 'somestring' ); > > > ?> > > is now > > > $x = new Framework\Utils\Foo();

Re: [PHP-DEV] Re: namespace separator and whining

2008-10-26 Thread Kalle Sommer Nielsen
2008/10/26 Andrew Mason <[EMAIL PROTECTED]>: > So can I just confirm that what was previously > > > $x = new Framework::Utils::Foo(); > $y = new Project::PEAR::Bar( 'somestring' ); > > > ?> > > is now > > > $x = new Framework\Utils\Foo(); > $y =

Re: [PHP-DEV] Re: namespace separator and whining

2008-10-26 Thread Andrew Mason
So can I just confirm that what was previously is now Is this correct ? On Mon, Oct 27, 2008 at 9:12 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Greg Beaver wrote: >> >> Hi all, >> >> Let me make this brief: there will be lots of complaining about the >> namespace separator. >> >> Stop