<div><span class="gmail_quote">On 9/20/07, <b class="gmail_sendername">Chris Cunnington</b> <<a href="mailto:cunnington@sympatico.ca">cunnington@sympatico.ca</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>I have a question about the difference between chaining and cascading. What<br>would happen if you wrote this:
<br><br>Html table id: 'label' with: [foo foo foo]<br><br>You see, I've left out the semicolon that the sushi store demo puts between<br>'label' and with. It usually looks like this:<br><br>Html table id: 'label'; with: [foo foo foo]
</blockquote>
<div> </div>
<div>Well, the first example is sending the method <strong>#id:with:</strong> to <strong>Html table. </strong>The second example is the equavalent of:</div>
<div><strong>Html table id: 'label'.</strong></div>
<div><strong>Html table with: [foo foo foo].</strong></div>
<div> </div>
<div>The cascading operator (the semicolon ;) causes the next message (#with:) to be sent to the previous messages (#id:) receiver (in this case, Html table).</div><br> </div>