"TheLobster at Gmail dot Com" <thelobster@gmail.com> wrote in message
news:1104563309.628249.205680@z14g2000cwz.googlegr oups.com...[color=blue]
> You are 100% correct, it should be $this->test1= new bar(); however it
> doesn't work. I am NOT getting an error, although thinking about it, I
> haven't tried a E_ALL reporting, just E_ERROR. I'll test that out in
> the morning and if anything new arrises then I'll let ya all know. I
> know Java and C++ well. Along the same note, I know that PHP doesn't
> support namespace yet. The real goal is to get it so that I can access
> a class from within another class. I don't want to use globals because
> as I once so elequently saw it, "it's just a small step down from
> globals to goto's"[/color]
Utter crap! Globals are provided in many languages and serve their purpose.
They are neither 'good' or 'bad' in themsleves. It just depends on how you
use them.
[color=blue]
> and globals cause problems if you want to make the
> code flexable.[/color]
Globals do not cause problems. Bad programming causes problems.
--
Tony Marston
http://www.tonymarston.net