<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-876358347971598886.post6702744752656545652..comments</id><updated>2009-09-21T07:16:00.502+03:00</updated><title type='text'>Comments on nothingmuch's perl blog: Method Style Callbacks</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.woobling.org/feeds/6702744752656545652/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/6702744752656545652/comments/default'/><link rel='alternate' type='text/html' href='http://blog.woobling.org/2009/09/method-style-callbacks.html'/><author><name>nothingmuch</name><uri>http://www.blogger.com/profile/03975438115490089158</uri><email>nothingmuch@woobling.org</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-876358347971598886.post-630856233272387814</id><published>2009-09-21T07:16:00.502+03:00</published><updated>2009-09-21T07:16:00.502+03:00</updated><title type='text'>I think it's a side effect of the implementation.
...</title><content type='html'>I think it&amp;#39;s a side effect of the implementation.&lt;br /&gt;&lt;br /&gt;Method calls are two opcodes, one opcode to find a code ref, and then a normal subroutine invocation.&lt;br /&gt;&lt;br /&gt;The &amp;quot;method&amp;quot; opcode will simply do nothing if a the method being invoked is already a code reference and the &amp;quot;entersub&amp;quot; opcode doesn&amp;#39;t really care what the arguments to the code ref are.&lt;br /&gt;&lt;br /&gt;BTW, the way that &lt;a href="http://search.cpan.org/perldoc?autobox" rel="nofollow"&gt;autobox&lt;/a&gt; works is by overriding the definition of that opcode in a lexical scope making method calls on non objects no longer be an error.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/6702744752656545652/comments/default/630856233272387814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/6702744752656545652/comments/default/630856233272387814'/><link rel='alternate' type='text/html' href='http://blog.woobling.org/2009/09/method-style-callbacks.html?showComment=1253506560502#c630856233272387814' title=''/><author><name>nothingmuch</name><uri>http://www.blogger.com/profile/03975438115490089158</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='04344917020781355723'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.woobling.org/2009/09/method-style-callbacks.html' ref='tag:blogger.com,1999:blog-876358347971598886.post-6702744752656545652' source='http://www.blogger.com/feeds/876358347971598886/posts/default/6702744752656545652' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-876358347971598886.post-5118419227185267060</id><published>2009-09-20T21:31:13.618+03:00</published><updated>2009-09-20T21:31:13.618+03:00</updated><title type='text'>Very interesting. I had never seen this $data-&gt;$co...</title><content type='html'>Very interesting. I had never seen this $data-&amp;gt;$coderef() notation before (when $data is not an object); but indeed it works! However, I couldn&amp;#39;t find any mention of it in perldoc. So is this an undocumented side-effect of the current implementation, or is it really a Perl feature ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/6702744752656545652/comments/default/5118419227185267060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/876358347971598886/6702744752656545652/comments/default/5118419227185267060'/><link rel='alternate' type='text/html' href='http://blog.woobling.org/2009/09/method-style-callbacks.html?showComment=1253471473618#c5118419227185267060' title=''/><author><name>dami</name><uri>http://www.blogger.com/profile/05175840149225722194</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06341276784379627511'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.woobling.org/2009/09/method-style-callbacks.html' ref='tag:blogger.com,1999:blog-876358347971598886.post-6702744752656545652' source='http://www.blogger.com/feeds/876358347971598886/posts/default/6702744752656545652' type='text/html'/></entry></feed>