On 9/20/07, Chris Cunnington <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a question about the difference between chaining and cascading.
> What
> would happen if you wrote this:
>
> Html table id: 'label' with: [foo foo foo]
>
> You see, I've left out the semicolon that the sushi store demo puts
> between
> 'label' and with. It usually looks like this:
>
> Html table id: 'label'; with: [foo foo foo]


Well, the first example is sending the method *#id:with:* to *Html table.  *The
second example is the equavalent of:
*Html table id: 'label'.*
*Html table with: [foo foo foo].*

The cascading operator (the semicolon ;) causes the next message (#with:) to
be sent to the previous messages (#id:) receiver (in this case, Html table).
_______________________________________________
Beginners mailing list
[email protected]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to