> -----Original Message----- > From: Andi Gutmans [mailto:[EMAIL PROTECTED]] > Sent: mercredi 26 juin 2002 21:02 > To: Brad LaFountain; Ivan Ristic; phpsurf > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class > Autoloading [PATCH] > > > Hey, > > What I meant was nested classes, my bad :) > I meant it won't work for Foo::Bar::Barbara but only for class Foo. >
Andi, what is the problem with nested classes ? it is that the only class name that could be passed to __autoload is "Barbara" instead of "Foo::Bar::Barbara" ? or is it the problem to pass the class context to __autoload so the new nested class gets created inside the appropriate context ? just to understand ... > Andi > > At 11:56 AM 6/26/2002 -0700, Brad LaFountain wrote: > > > - will never work for sub-classes so don't even ask!!!!! > > > >Andi, > > > > This doesn't need to be an issue. The way that I use > sub-classes is I ALWAYS > >include_once("subclass.php"); at the top of each superclass file. I know > >everyone doesn't code the same way but maybe you can have that > as a suggestion > >to people who use __autoload. > > > >Foo.php > >class Foo{} > > > >Bar.php > >class Bar{} > > > >MyFoo.php > >include_once("Foo.php"); > >class MyFoo extends Foo{} > > > >MyBar.php > >include_once("Bar.php"); > >class MyBar extends Bar{} > > > > > >auto_test.php > ><? > >function __autoload($name) { > > include_once("$name.php"); > >} > >$f = new MyFoo(); > >$b = new MyBar(); > >?> > > > >- brad > > > > > > At 11:27 PM 6/11/2002 +0100, Ivan Ristic wrote: > > > > > Okay, I guess I can live with it :) > > > > > > > > > > Andi > > > > > > > > Is there anyone else who would like to comment on the > > > > patch? > > > > > > > > http://www.webkreator.com/download/class_autoload.patch > > > > > > > > Or can we have it committed? > > > > > > > >-- > > > >Ivan Ristic, [EMAIL PROTECTED] > > > >[ Weblog on PHP, Software development, Intranets, > > > >and Knowledge Management: http://www.webkreator.com ] > > > > > > > > > > > >-- > > > >PHP Development Mailing List <http://www.php.net/> > > > >To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > -- > > > PHP Development Mailing List <http://www.php.net/> > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > >__________________________________________________ > >Do You Yahoo!? > >Yahoo! - Official partner of 2002 FIFA World Cup > >http://fifaworldcup.yahoo.com > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php