Oups...Jjai enfoncé le bouton send un peu trop rapidement, donc :<br><br><div><span class="gmail_quote">On 7/27/06, <b class="gmail_sendername">Gilles Jobin</b> <<a href="mailto:gilles.jobin@gmail.com">gilles.jobin@gmail.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Bonjour Serge,<br>
Je suis peut-être complètement dans le champs, mais losrsque je fais <br>
JeuDeLaVie newWithGrilleVide, le compilateur se plaint un peu.<br>
J'ai donc modifié newWithGrilleVide par<br>
<pre>newWithGrilleVide<br> " |nouveauJeu|<br> nouveauJeu := super new."<br> self grille: #(#($. $. $.) #($. $. $.)#($. $. $.)).<br>"^ nouveauJeu"<br><br>En lançant JeuDeLaVie new newWithGrilleVIde, on trouve bien la variable grille espérée.
<br></pre>
Je crois, et c'est p.e. là que je suis dans le champs, que nouveauJeu
:= super new crée une instance de la classe OBJET et, donc, ne peut
connaître la variable grille. Me tromperais-je?<br>
Gilles <br>
</div>
</blockquote><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span class="e" id="q_10cb13b1541fc82e_1"><div><span class="gmail_quote">
On 7/27/06, <b class="gmail_sendername">Serge Stinckwich</b> <<a href="mailto:Serge.Stinckwich@info.unicaen.fr" title="mailto:Serge.Stinckwich@info.unicaen.fr" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Serge.Stinckwich@info.unicaen.fr</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Le 27 juil. 06 à 11:34, Serge Stinckwich a écrit :<br><br>> Bonjour à tous,<br>> j'ai un problème avec le code que l'on a construit à plusieurs<br>> pendant le dernier Dojo Smallalk. A voir ici :<br>> <a href="http://www.xp-france.net/cgi-bin/wiki.pl?DojoDeveloppement/" title="http://www.xp-france.net/cgi-bin/wiki.pl?DojoDeveloppement/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.xp-france.net/cgi-bin/wiki.pl?DojoDeveloppement/</a><br>> Lundi24Juillet2006<br>> Quand je lance les trois tests, ils ne passent pas. Puis je lance :<br>> JeuDeLaVie newWithGrilleVide, puis j'inspecte la variable
<br>> d'instance grille et elle ne contient pas le bon tableau qui est<br>> sensé représenter un tableau vide (le tableau :<br>> #(#($. $. $.) #($. $. $.)#($. $. $.))). Le tableau est modifié dans<br>> la méthode : naissanceEnLigne: l colonne: c
<br>><br>> J'ai l'impression qu'il y a un problème de partage de littéraux ...<br>> J'ai essayé de faire des copies des tableaux pour éviter ce genre<br>> de problème, mais cela ne marche pas visiblement ... any ideas ?
<br><br>Dans VW, c'est un peu plus cohérent car si j'essaie de modifier un<br>litteral array, il me dit que c'est immutable.<br>--
oooo<br>Dr. Serge
Stinckwich
OOOOOOOO<br>Université de Caen>CNRS UMR
6072>GREYC>MAD
OOESUGOO<br><a href="http://purl.org/net/SergeStinckwich" title="http://purl.org/net/SergeStinckwich" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://purl.org/net/SergeStinckwich</a>
oooooo<br>Smalltalkers do: [:it | All with: Class, (And love: it)] \ /<br>
##<br><br><br><br>_______________________________________________<br>Squeak-fr mailing list<br><a href="mailto:Squeak-fr@lists.squeakfoundation.org" title="mailto:Squeak-fr@lists.squeakfoundation.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Squeak-fr@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/squeak-fr" title="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/squeak-fr" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/squeak-fr</a><br></blockquote></div><br>
</span></div></blockquote></div><br>