Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-07 Thread Sebastian Krebs
2012/11/7 Laupretre François > > De : sebastian.krebs.ber...@gmail.com > > > I hope you find more support on this than I had. Technically > > speaking, > > > it would be easy to extend autoloading to functions and constants. It > > > can even be done without BC breaks, combining 'old-style' and '

Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-07 Thread Benjamin Eberlei
There is an RFC already that discusses the topic at length, we should really have this functionality: https://wiki.php.net/rfc/autofunc On Wed, Nov 7, 2012 at 9:12 AM, Sebastian Krebs wrote: > 2012/11/7 Laupretre François > > > > De : sebastian.krebs.ber...@gmail.com > > > > I hope you find mo

RE: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-07 Thread Laupretre François
OK, sorry, as I hadn't read the 'autofunc' RFC, I was not talking about the API described there. You're right: by introducing a second argument to spl_autoload_register(), you register each autoloader with the type it can be called for. The API I was talking about would not modify spl_autoload_

Re: [PHP-DEV] Generics proposal

2012-11-07 Thread Lars Strojny
Cool! Looking forward to it. Am 07.11.2012 um 06:41 schrieb Sara Golemon : > Retrying this with reply-to-all. :) > > I think it's an awesome moment for PHP and HipHop to work together! :) > I'll summarize what we have so far into an RFC. > > -Sara > > On Tue, Nov 6, 2012 at 12:50 PM, Lars Stro