[wp-hackers] Passing class methods by reference

Dan Gayle dangayle at gmail.com
Fri Aug 6 00:13:52 UTC 2010

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?

More information about the wp-hackers mailing list