ZE2 nested classes question

From: Date: Wed, 09 Oct 2002 04:43:29 +0000
Subject: ZE2 nested classes question
Groups: php.general 
Request: Send a blank email to php-general+get-119390@lists.php.net to get a copy of this message
Question about a change coming in PHP 5 / ZendEngine2 : I'm not clear on exactly why you would want to nest class definitions, especially if the proposed change to namespace handling goes away - i.e. you still have to do $this->otherclassfunc() inside a class function, instead of just otherclassfunc(). What is the difference between class Foo { class Bar() { ... } ... } and class Foo { ... } class Bar { ... } ?? In the Foo::Bar() example (the first one), it's not like Foo::Bar() inherits anything from Foo. You still have to explicitly say that Bar extends Foo for that to happen. Thanks

« previous php.general (#119390) next »