[Seaside] Task Escape

Keith Hodges keith_hodges at yahoo.co.uk
Wed Jan 9 22:14:59 UTC 2008


Keith Hodges wrote:
> or... you could try a message eating null. I know that people are alway
> suspicious of letting message eating null loose in their code, however I
> do think that in a specific controlled situation it can be very useful.
>
> You example becomes...
>
> self stepOne stepTwo stepThree.
>
> if any of the steps returns Null then the subsequent steps are passed over.
>
> Null is available in universes.
>
> cheers
>
> Keith
>   
And you can explicitly test whether anyone cancelled.

self stepOne stepTwo stepThree ifNull: [ "they cancelled" ]

Keith


More information about the seaside mailing list