Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-05-03 Thread Jingcheng Zhang
Hi, In this way, classes can be considered as polymorphism, just like objects. So is it OK to allow abstract static function in abstract class to support this feature directory? Currently it is forbidden in HEAD, only interfaces can have static function. Thanks 2007/4/27, Etienne Kneuss [EMAIL

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-05-03 Thread Stanislav Malyshev
I've already proposed that 1-2 months ago, but now seems to be a good time to discuss new things, so let's try again: I believe it would be nice to be able to dynamically reference static members, constants, and methods. Currently, there is no way to do that and the only way would be to create

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-05-03 Thread Etienne Kneuss
Hi, Stanislav Malyshev wrote: Could you describe a couple of use cases where you would use such things (i.e. in real world scripts/libraries)? Sure, let's take an example: You have a library that uses a factory pattern, but you'd like to cache those already generated objects in a static

[PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-04-27 Thread Etienne Kneuss
Hi, I've already proposed that 1-2 months ago, but now seems to be a good time to discuss new things, so let's try again: I believe it would be nice to be able to dynamically reference static members, constants, and methods. Currently, there is no way to do that and the only way would be to

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-04-27 Thread Edin Kadribasic
+1 Nice to be able to do this directly without resorting to call_user_func(). Edom Etienne Kneuss wrote: Hi, I've already proposed that 1-2 months ago, but now seems to be a good time to discuss new things, so let's try again: I believe it would be nice to be able to dynamically

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-04-27 Thread Antony Dovgal
On 04/27/2007 04:37 PM, Etienne Kneuss wrote: Hi, I've already proposed that 1-2 months ago, but now seems to be a good time to discuss new things, so let's try again: I believe it would be nice to be able to dynamically reference static members, constants, and methods. Currently, there is

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-04-27 Thread Tijnema !
On 4/27/07, Antony Dovgal [EMAIL PROTECTED] wrote: On 04/27/2007 04:37 PM, Etienne Kneuss wrote: Hi, I've already proposed that 1-2 months ago, but now seems to be a good time to discuss new things, so let's try again: I believe it would be nice to be able to dynamically reference static

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-04-27 Thread David Coallier
+1 On 4/27/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/27/07, Antony Dovgal [EMAIL PROTECTED] wrote: On 04/27/2007 04:37 PM, Etienne Kneuss wrote: Hi, I've already proposed that 1-2 months ago, but now seems to be a good time to discuss new things, so let's try again: I believe it

[PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-03-06 Thread Etienne Kneuss
Hi, It may have already been proposed, but I give it a shot: I believe it would be nice to be able to dynamically reference static members and constants. Currently, there is no way to do that and the only way would be to create a static method and use call_user_func(array($classname,

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-03-06 Thread Marcus Boerger
Hello Etienne, besides a tiny bit of whitespace issues the patch looks fine. Actually we use tabs at the beginning of lines here (prior and after |'s). Once you got more people looking/commenting on the patch we mde decide whetehr to apply it. best regards marcus Tuesday, March 6, 2007,