<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Using Moose Roles to create Singleton Methods</title>
	<atom:link href="http://transfixedbutnotdead.com/2009/06/03/using-moose-roles-to-create-singleton-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://transfixedbutnotdead.com/2009/06/03/using-moose-roles-to-create-singleton-methods/</link>
	<description>my ramblings on life, work &#38; anything left in-between</description>
	<lastBuildDate>Mon, 06 Sep 2010 09:37:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: draegtun</title>
		<link>http://transfixedbutnotdead.com/2009/06/03/using-moose-roles-to-create-singleton-methods/#comment-1152</link>
		<dc:creator>draegtun</dc:creator>
		<pubDate>Fri, 09 Apr 2010 14:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=388#comment-1152</guid>
		<description>Excellent stuff lsm (&amp; doy).   Look forward to upgrading to 1.02 in a couple of weeks.

/I3az/

PS.  The comments threading on this post seem to have gone a bit out of kilter!?   Sorry about that it looks to be a Wordpress and/or theme funny.</description>
		<content:encoded><![CDATA[<p>Excellent stuff lsm (&amp; doy).   Look forward to upgrading to 1.02 in a couple of weeks.</p>
<p>/I3az/</p>
<p>PS.  The comments threading on this post seem to have gone a bit out of kilter!?   Sorry about that it looks to be a WordPress and/or theme funny.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lsm</title>
		<link>http://transfixedbutnotdead.com/2009/06/03/using-moose-roles-to-create-singleton-methods/#comment-1151</link>
		<dc:creator>lsm</dc:creator>
		<pubDate>Thu, 08 Apr 2010 23:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=388#comment-1151</guid>
		<description>http://github.com/nothingmuch/moose/commit/f315aab389b68172c5139d3f270e2a1e13930ea8

fix is in, and your code entered as a test case, courtesy of doy (Jesse Leuhrs)</description>
		<content:encoded><![CDATA[<p><a href="http://github.com/nothingmuch/moose/commit/f315aab389b68172c5139d3f270e2a1e13930ea8" rel="nofollow">http://github.com/nothingmuch/moose/commit/f315aab389b68172c5139d3f270e2a1e13930ea8</a></p>
<p>fix is in, and your code entered as a test case, courtesy of doy (Jesse Leuhrs)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lsm</title>
		<link>http://transfixedbutnotdead.com/2009/06/03/using-moose-roles-to-create-singleton-methods/#comment-1150</link>
		<dc:creator>lsm</dc:creator>
		<pubDate>Thu, 08 Apr 2010 23:56:02 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=388#comment-1150</guid>
		<description>http://github.com/nothingmuch/moose/commit/f315aab389b68172c5139d3f270e2a1e13930ea8

fix is in, and your example above is now entered as a moose test.

coutesy of doy (Jesse Leuhrs).</description>
		<content:encoded><![CDATA[<p><a href="http://github.com/nothingmuch/moose/commit/f315aab389b68172c5139d3f270e2a1e13930ea8" rel="nofollow">http://github.com/nothingmuch/moose/commit/f315aab389b68172c5139d3f270e2a1e13930ea8</a></p>
<p>fix is in, and your example above is now entered as a moose test.</p>
<p>coutesy of doy (Jesse Leuhrs).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lsm</title>
		<link>http://transfixedbutnotdead.com/2009/06/03/using-moose-roles-to-create-singleton-methods/#comment-1149</link>
		<dc:creator>lsm</dc:creator>
		<pubDate>Thu, 08 Apr 2010 23:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=388#comment-1149</guid>
		<description>doy @ moose IRC says it&#039;s a moose bug which arose in some recent refactoring.</description>
		<content:encoded><![CDATA[<p>doy @ moose IRC says it&#8217;s a moose bug which arose in some recent refactoring.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: draegtun</title>
		<link>http://transfixedbutnotdead.com/2009/06/03/using-moose-roles-to-create-singleton-methods/#comment-1148</link>
		<dc:creator>draegtun</dc:creator>
		<pubDate>Thu, 08 Apr 2010 20:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=388#comment-1148</guid>
		<description>Could be a bug then?  Or something as changed when applying roles to instances? (I&#039;m a bit behind on the Moose mailing list at moment so its possible).

Its going to be a couple of weeks before I get time to test stuff on Moose 1.01 here.    In meantime you could pass this by the Moose IRC or mailing list.  

/I3az/</description>
		<content:encoded><![CDATA[<p>Could be a bug then?  Or something as changed when applying roles to instances? (I&#8217;m a bit behind on the Moose mailing list at moment so its possible).</p>
<p>Its going to be a couple of weeks before I get time to test stuff on Moose 1.01 here.    In meantime you could pass this by the Moose IRC or mailing list.  </p>
<p>/I3az/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lsm</title>
		<link>http://transfixedbutnotdead.com/2009/06/03/using-moose-roles-to-create-singleton-methods/#comment-1147</link>
		<dc:creator>lsm</dc:creator>
		<pubDate>Thu, 08 Apr 2010 20:03:17 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=388#comment-1147</guid>
		<description>I already tried that variation, aware of the change of syntax.

Still doesn&#039;t work.</description>
		<content:encoded><![CDATA[<p>I already tried that variation, aware of the change of syntax.</p>
<p>Still doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: draegtun</title>
		<link>http://transfixedbutnotdead.com/2009/06/03/using-moose-roles-to-create-singleton-methods/#comment-1146</link>
		<dc:creator>draegtun</dc:creator>
		<pubDate>Thu, 08 Apr 2010 19:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=388#comment-1146</guid>
		<description>Hi lsm,

Also on 5.10.1.  However I&#039;m on Moose 0.94.

Looking thru the Moose changelogs (http://cpansearch.perl.org/src/FLORA/Moose-1.01/Changes) I see that at 0.89 it mentions:

&lt;code&gt; Rename alias and excludes to -alias and -excludes (but keep the old names for now, for backcompat) (doy)
&lt;/code&gt;

So it looks like the &quot;backcompat&quot; was probably dropped after 0.94 (probably at 1.00).  So code should now be:

&lt;code&gt;DoesTranspose-&gt;meta-&gt;apply( $p, -alias =&gt; { transpose =&gt; &#039;negated&#039; } );&lt;/code&gt;

Thanks for the heads up.  If you didn&#039;t get any warnings then I&#039;d better check all my code carefully when I do upgrade to 1.00 !!

/I3az/</description>
		<content:encoded><![CDATA[<p>Hi lsm,</p>
<p>Also on 5.10.1.  However I&#8217;m on Moose 0.94.</p>
<p>Looking thru the Moose changelogs (<a href="http://cpansearch.perl.org/src/FLORA/Moose-1.01/Changes" rel="nofollow">http://cpansearch.perl.org/src/FLORA/Moose-1.01/Changes</a>) I see that at 0.89 it mentions:</p>
<p><code> Rename alias and excludes to -alias and -excludes (but keep the old names for now, for backcompat) (doy)<br />
</code></p>
<p>So it looks like the &#8220;backcompat&#8221; was probably dropped after 0.94 (probably at 1.00).  So code should now be:</p>
<p><code>DoesTranspose-&gt;meta-&gt;apply( $p, -alias =&gt; { transpose =&gt; 'negated' } );</code></p>
<p>Thanks for the heads up.  If you didn&#8217;t get any warnings then I&#8217;d better check all my code carefully when I do upgrade to 1.00 !!</p>
<p>/I3az/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lsm</title>
		<link>http://transfixedbutnotdead.com/2009/06/03/using-moose-roles-to-create-singleton-methods/#comment-1145</link>
		<dc:creator>lsm</dc:creator>
		<pubDate>Thu, 08 Apr 2010 16:40:12 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=388#comment-1145</guid>
		<description>The problem is something else.  I&#039;m running 5.10.1, I use feature (say) which works. 

In the earlier blocks of code, culminating with

&lt;pre&gt;Negated-&gt;meta-&gt;apply( $p );&lt;/pre&gt;

I get the values indicated in the comments

&lt;pre&gt;$p-&gt;negated-&gt;inspect;     # =&gt; 3 @ 4
$p-&gt;transpose-&gt;inspect;   # =&gt; 3 @ 4&lt;/pre&gt;

But in the final &quot;wrap it all up&quot; block after

&lt;pre&gt;DoesTranspose-&gt;meta-&gt;apply( $p, alias =&gt; { transpose =&gt; &#039;negated&#039; } );&lt;/pre&gt;

the calls to

&lt;pre&gt;$p-&gt;negated-&gt;inspect;     # =&gt; 3 @ 4
$p-&gt;transpose-&gt;inspect;   # =&gt; 3 @ 4&lt;/pre&gt;

I don&#039;t get the values in the comments, but instead the same values as before the 

&lt;pre&gt;-4 @ -3
3 @ 4&lt;/pre&gt;

In other words, 


&lt;pre&gt;DoesTranspose-&gt;meta-&gt;apply( $p, alias =&gt; { transpose =&gt; &#039;negated&#039; } );&lt;/pre&gt;

does not have the expected impact on subsequent calls to the object methods.

I&#039;m running Moose 1.01, perl 5.10.1.  I hope this clarification helps.</description>
		<content:encoded><![CDATA[<p>The problem is something else.  I&#8217;m running 5.10.1, I use feature (say) which works. </p>
<p>In the earlier blocks of code, culminating with</p>
<pre>Negated-&gt;meta-&gt;apply( $p );</pre>
<p>I get the values indicated in the comments</p>
<pre>$p-&gt;negated-&gt;inspect;     # =&gt; 3 @ 4
$p-&gt;transpose-&gt;inspect;   # =&gt; 3 @ 4</pre>
<p>But in the final &#8220;wrap it all up&#8221; block after</p>
<pre>DoesTranspose-&gt;meta-&gt;apply( $p, alias =&gt; { transpose =&gt; 'negated' } );</pre>
<p>the calls to</p>
<pre>$p-&gt;negated-&gt;inspect;     # =&gt; 3 @ 4
$p-&gt;transpose-&gt;inspect;   # =&gt; 3 @ 4</pre>
<p>I don&#8217;t get the values in the comments, but instead the same values as before the </p>
<pre>-4 @ -3
3 @ 4</pre>
<p>In other words, </p>
<pre>DoesTranspose-&gt;meta-&gt;apply( $p, alias =&gt; { transpose =&gt; 'negated' } );</pre>
<p>does not have the expected impact on subsequent calls to the object methods.</p>
<p>I&#8217;m running Moose 1.01, perl 5.10.1.  I hope this clarification helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: draegtun</title>
		<link>http://transfixedbutnotdead.com/2009/06/03/using-moose-roles-to-create-singleton-methods/#comment-1144</link>
		<dc:creator>draegtun</dc:creator>
		<pubDate>Thu, 08 Apr 2010 07:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=388#comment-1144</guid>
		<description>Hi lsm,

It works here fine (and I double checked by pasting it back from blog as well).

Remember that the inspect method uses &lt;code&gt;say&lt;/code&gt; so you will need to have that loaded either by:

&lt;code&gt;use 5.010;&lt;/code&gt;

or if instead you&#039;re using an older perl:

&lt;code&gt;use Perl6::Say;&lt;/code&gt;

Alternatively just change that inspect method to use print:

&lt;code&gt;sub inspect { print &quot;$_[0]-&gt;{x} \@ $_[0]-&gt;{y}\n&quot; };&lt;/code&gt;

If the problem is something else then let me know.

/I3az/</description>
		<content:encoded><![CDATA[<p>Hi lsm,</p>
<p>It works here fine (and I double checked by pasting it back from blog as well).</p>
<p>Remember that the inspect method uses <code>say</code> so you will need to have that loaded either by:</p>
<p><code>use 5.010;</code></p>
<p>or if instead you&#8217;re using an older perl:</p>
<p><code>use Perl6::Say;</code></p>
<p>Alternatively just change that inspect method to use print:</p>
<p><code>sub inspect { print "$_[0]-&gt;{x} \@ $_[0]-&gt;{y}\n" };</code></p>
<p>If the problem is something else then let me know.</p>
<p>/I3az/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lsm</title>
		<link>http://transfixedbutnotdead.com/2009/06/03/using-moose-roles-to-create-singleton-methods/#comment-1142</link>
		<dc:creator>lsm</dc:creator>
		<pubDate>Wed, 07 Apr 2010 20:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=388#comment-1142</guid>
		<description>your last &#039;wrap it all up&#039; using the &#039;alias&#039; option doesn&#039;t seem to work.</description>
		<content:encoded><![CDATA[<p>your last &#8216;wrap it all up&#8217; using the &#8216;alias&#8217; option doesn&#8217;t seem to work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
