<br> Block are used to delimit a sequence of parametrized instructions<br> for which evaluation is deferred. They can also be seen as anonymous<br> functions with or without arguments.<br><br> The example sends the message \code{do:} to an array of strings with
<br> a block as a parameter. The block is evaluated once for each element<br> in the array. The block parameter \code{string} contains each<br> element of the array, one after the other. As a result of the whole<br> expression, the strings \code{'Hello '} then \code{'World'} are
<br> displayed in the transcript.<br><br><br>Spanish (Castellano):<br><br>Los bloques son usados para delimitar una secuencia de instrucciones parametrizadas para las cuales su evaluación es diferida. Tambien pueden ser vistas como funciones anónimas con o sin argumentos.
<br><br>...(example)<br><br>En el ejemplo se envía el mensaje \code{do:} a un arreglo de cadenas con un bloque como parámetro. El bloque es evaluado una vez para cada elemento en el arreglo. El parámetro del bloque \code{string} contiene cada elemento del arreglo, uno tras otro. Como resultado de la expresión entera, las cadenas \code{'Hello '} y luego \code{'World'} son visualizadas en el transcript.
<br><br>Hernán<br><br><div><span class="gmail_quote">2007/12/2, Damien Cassou <<a href="mailto:damien.cassou@gmail.com">damien.cassou@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>Smalltalk flyers are located to <a href="http://damien.cassou.free.fr/">http://damien.cassou.free.fr/</a>. I plan<br>to create Squeak and Seaside flyers too.<br><br>I've added a paragraph about blocks on the flyer. The flyer is
<br>translated to English, French, German and Spanish. I need a german and<br>a spanish for the translation of the following paragraph. Also, in the<br>Spanish version, there is no more free room for the squeak browser<br>
picture. So, someone has to rephrase the spanish version.<br><br>If you have comments, feel free to answer this message.<br><br>\newcommand{\stBlockTerm}{Block}<br>\newcommand{\stBlockDefinition}{<br><br> Block are used to delimit a sequence of parametrized instructions
<br> for which evaluation is deferred. They can also be seen as anonymous<br> functions with or without arguments.<br><br> \begin{displaycode}<br> \#('Hello ' 'World')<br><br> \hspace{1cm} do: [:string | Transcript show: string].
<br> \end{displaycode}<br><br> The example sends the message \code{do:} to an array of strings with<br> a block as a parameter. The block is evaluated once for each element<br> in the array. The block parameter \code{string} contains each
<br> element of the array, one after the other. As a result of the whole<br> expression, the strings \code{'Hello '} then \code{'World'} are<br> displayed in the transcript.<br><br>}<br><br>Thank you<br>
<br>--<br>Damien Cassou<br><br></blockquote></div><br>