<?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/"
		>
<channel>
	<title>Comments on: Release de Coat 0.334</title>
	<atom:link href="http://www.sukria.net/fr/archives/2008/11/25/release-de-coat-0334/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sukria.net/fr/archives/2008/11/25/release-de-coat-0334/</link>
	<description>I will press many keys on my keyboard causing an implementation to occur.</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:14:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: sukria</title>
		<link>http://www.sukria.net/fr/archives/2008/11/25/release-de-coat-0334/comment-page-1/#comment-45860</link>
		<dc:creator>sukria</dc:creator>
		<pubDate>Wed, 21 Jan 2009 10:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=837#comment-45860</guid>
		<description>&lt;a href=&quot;#comment-45859&quot; rel=&quot;nofollow&quot;&gt;@Jean-Charles&lt;/a&gt; 
Ouh la ! C&#039;est vieux ! :-) Disons que si vous upgradez, vous aurez pas mal de corrections de bugs, d&#039;amélioration de perfs sur certaines fonctionnalités et de nouvelles possibilités (définition de types maison notamment).</description>
		<content:encoded><![CDATA[<p><a href="#comment-45859" rel="nofollow">@Jean-Charles</a><br />
Ouh la ! C&#8217;est vieux ! :-) Disons que si vous upgradez, vous aurez pas mal de corrections de bugs, d&#8217;amélioration de perfs sur certaines fonctionnalités et de nouvelles possibilités (définition de types maison notamment).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean-Charles</title>
		<link>http://www.sukria.net/fr/archives/2008/11/25/release-de-coat-0334/comment-page-1/#comment-45859</link>
		<dc:creator>Jean-Charles</dc:creator>
		<pubDate>Tue, 13 Jan 2009 11:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=837#comment-45859</guid>
		<description>Gasp !
Ici on à la 0.1_0.6
C&#039;est grave docteur ?</description>
		<content:encoded><![CDATA[<p>Gasp !<br />
Ici on à la 0.1_0.6<br />
C&#8217;est grave docteur ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sukria</title>
		<link>http://www.sukria.net/fr/archives/2008/11/25/release-de-coat-0334/comment-page-1/#comment-45839</link>
		<dc:creator>sukria</dc:creator>
		<pubDate>Tue, 25 Nov 2008 22:36:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=837#comment-45839</guid>
		<description>&lt;a href=&quot;#comment-45838&quot; rel=&quot;nofollow&quot;&gt;@oz&lt;/a&gt; Heu, merci :)</description>
		<content:encoded><![CDATA[<p><a href="#comment-45838" rel="nofollow">@oz</a> Heu, merci :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oz</title>
		<link>http://www.sukria.net/fr/archives/2008/11/25/release-de-coat-0334/comment-page-1/#comment-45838</link>
		<dc:creator>oz</dc:creator>
		<pubDate>Tue, 25 Nov 2008 22:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=837#comment-45838</guid>
		<description>Mais comment c&#039;est bien quand tu parles de Perl toi. :)

(et merci pour les explications)</description>
		<content:encoded><![CDATA[<p>Mais comment c&#8217;est bien quand tu parles de Perl toi. :)</p>
<p>(et merci pour les explications)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sukria</title>
		<link>http://www.sukria.net/fr/archives/2008/11/25/release-de-coat-0334/comment-page-1/#comment-45837</link>
		<dc:creator>sukria</dc:creator>
		<pubDate>Tue, 25 Nov 2008 13:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=837#comment-45837</guid>
		<description>@Rached you&#039;re welcome

@melkor Voici un exemple concret d&#039;utilisation de BUILDARGS :

On a une classe qui a un champ &quot;file&quot;, on veut pouvoir instancier l&#039;objet avec les arguments reçu de la ligne de commande. Donc on veut automatiquement traiter un argument unique comme étant une valeur pour le champ file.

En clair : on veut qu&#039;un Class-&gt;new(&quot;toto&quot;) soit compris comme un Class-&gt;new(file =&gt; &quot;toto&quot;).

Voici comment faire avec BUILDARGS :

&lt;pre&gt;
package ConfReader;

use Coat;

has file =&gt; (
    is =&gt; &#039;rw&#039;,
    isa =&gt; &#039;Str&#039;,
);

# Si on ne reçoit qu&#039;un seul argument, on considère
# que c&#039;est &quot;file&quot; 
sub BUILDARGS {
    my ($self, @args) = @_;
    return (@args == 1) 
        ? {file =&gt; $args[0]}
        : @args;
}

package main;

my $conf = ConfReader-&gt;new(@ARGV);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@Rached you&#8217;re welcome</p>
<p>@melkor Voici un exemple concret d&#8217;utilisation de BUILDARGS :</p>
<p>On a une classe qui a un champ &#8220;file&#8221;, on veut pouvoir instancier l&#8217;objet avec les arguments reçu de la ligne de commande. Donc on veut automatiquement traiter un argument unique comme étant une valeur pour le champ file.</p>
<p>En clair : on veut qu&#8217;un Class->new(&#8220;toto&#8221;) soit compris comme un Class->new(file => &#8220;toto&#8221;).</p>
<p>Voici comment faire avec BUILDARGS :</p>
<pre>
package ConfReader;

use Coat;

has file => (
    is => 'rw',
    isa => 'Str',
);

# Si on ne reçoit qu'un seul argument, on considère
# que c'est "file"
sub BUILDARGS {
    my ($self, @args) = @_;
    return (@args == 1)
        ? {file => $args[0]}
        : @args;
}

package main;

my $conf = ConfReader->new(@ARGV);
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rached</title>
		<link>http://www.sukria.net/fr/archives/2008/11/25/release-de-coat-0334/comment-page-1/#comment-45836</link>
		<dc:creator>Rached</dc:creator>
		<pubDate>Tue, 25 Nov 2008 12:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=837#comment-45836</guid>
		<description>Merci au mainteneur pour tant de réactivité ! :)</description>
		<content:encoded><![CDATA[<p>Merci au mainteneur pour tant de réactivité ! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: melkor</title>
		<link>http://www.sukria.net/fr/archives/2008/11/25/release-de-coat-0334/comment-page-1/#comment-45833</link>
		<dc:creator>melkor</dc:creator>
		<pubDate>Tue, 25 Nov 2008 09:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=837#comment-45833</guid>
		<description>s&#039;eut ete de bon aloi un petit exemple sur BUILDARG</description>
		<content:encoded><![CDATA[<p>s&#8217;eut ete de bon aloi un petit exemple sur BUILDARG</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sdeseille</title>
		<link>http://www.sukria.net/fr/archives/2008/11/25/release-de-coat-0334/comment-page-1/#comment-45831</link>
		<dc:creator>sdeseille</dc:creator>
		<pubDate>Tue, 25 Nov 2008 09:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sukria.net/fr/?p=837#comment-45831</guid>
		<description>Chouette, je m&#039;en va mettre à jour mon paletot préféré.</description>
		<content:encoded><![CDATA[<p>Chouette, je m&#8217;en va mettre à jour mon paletot préféré.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

