Function autoloading (Was: PHP4 -> PHP5 incompatibility - classes must be declared before being used)

From: Date: Sun, 18 Apr 2004 09:42:45 +0000
Subject: Function autoloading (Was: PHP4 -> PHP5 incompatibility - classes must be declared before being used)
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-9336@lists.php.net to get a copy of this message
> > > > Does __autoload() work for functions? > > > > > > nope > > > > But could? (Or would, some day?) > > Technically it is possible, but we ain't going to add this. I see, thanks. May I also ask the reasons? (I bet anyone a dead rat that *lots* of authors of simple plugin-based designs (not needing real OOP stuff) would welcome function autoloading. In fact, many of us, I'm sure, had wondered cluelessly about how to do it with __autoload, before wondering cluelessly about why was that support omitted after all...) Thanks again, Sz.

« previous php.internals (#9336) next »