[wp-hackers] Passing class methods by reference

Jacob Santos wordpress at santosj.name
Fri Aug 6 00:49:55 UTC 2010


On Thu, Aug 5, 2010 at 7:13 PM, Dan Gayle <dangayle at gmail.com> wrote:

> I hate to be a bugger, and I don't want to slow down an interesting
> discussion, but I want to make sure that the answer to my main
> question is that we should pass references to an instantiated object
> method rather than pass simply pass the class method.
> array(&$this, 'method') == good
> array($this, 'method') == bad
> Did I get that right?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list