Hi - in the first case, x, y and z are variables and you are passing their values to the block. <div><br></div><div>In the second case, the values inside the array #(x y z) are the symbols #x, #y and #z. Try the following:  </div>
<div><div><br></div><div>block valueWithArguments: (Array with: x with: y with: z) </div><div><br></div><div>or</div><div><br></div><div>block valueWithArguments: {x. y. z.}</div><div><br></div><div>The last case is not standard Smalltalk - it&#39;s a very convenient syntax sugar on top of Squeak. </div>
<div><br>Entschuldigung, aber ich habe fast alles mein Deutsch vergessen. </div><div><br></div><div>- Francisco </div><div><br></div><div><br><div class="gmail_quote">On Tue, Jul 5, 2011 at 11:11 PM, R. Baumann <span dir="ltr">&lt;<a href="mailto:baumann-garbsen@t-online.de">baumann-garbsen@t-online.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Definition:<br>
<br>
block := [:a :b :c | a + b + c].<br>
x := 1. y := 2. z := 3.<br>
<br>
Auswertung:<br>
<br>
block value: x value: y value: z --&gt; 6<br>
<br>
Aber:<br>
<br>
block valueWithArguments: #(x y z) --&gt; Fehlermeldung<br>
<br>
Ist das beabsichtigt oder ein &quot;Bug&quot;?<br>
<br>
Mit Dank für kompetente Ausdkunft<br>
<br>
R. Baumann<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://forum.world.st/Frage-zu-block-valueWithArguments-in-Etoys-4-und-Squeak-4-2-tp3647239p3647239.html" target="_blank">http://forum.world.st/Frage-zu-block-valueWithArguments-in-Etoys-4-und-Squeak-4-2-tp3647239p3647239.html</a><br>

Sent from the Deutsch (German) mailing list archive at Nabble.com.<br>
</font></blockquote></div><br></div></div>