Re: [PHP4BETA] passing a method to usort

From: Date: Tue, 29 Feb 2000 22:20:52 +0000
Subject: Re: [PHP4BETA] passing a method to usort
References: 1 2 3  Groups: php.version4 
Request: Send a blank email to php-version4+get-11213@lists.php.net to get a copy of this message
chagenbu@wso.williams.edu wrote: > > Quoting Stig Bakken <Stig.Bakken@fast.no>: > > > It is the Zend compiler that recognizes "::" (as opposed to the > > executor), so it's no wonder your example doesn't work. We could patch > > call_user_function{,_ex} to look for "::" in the function name though. > > That would be good. It doesn't address the issue of being able to pass an > _object_ method to usort() and similar functions, though - being able to pass an > instance of a class, so that class member variables can be referred to from > within the sort function... Any chance of that being possible? As far as I can see, that would require either a new data type or using a user-defined construct like array($object, "method"). - Stig

« previous php.version4 (#11213) next »