On 16 November 2012 16:53, Stéphane Ducasse <[email protected]> wrote:
> Hi guys
>
> I'm updating the exception chapter to show the interplay between exception 
> and ensure/ifcurtailed:
>
> [[ ^ 1 ]
>     ifCurtailed: [ Transcript show: 'show  only curtailed'; cr. ]]
>         on: Error do: [ :e |
>                 Transcript show: 'error'; cr. "do not show it"
>                 e return: 4 ].
>
> normally shows that only the ifCurtailed: argument is executed.
>
> Now I do not get why when I select
>         [^ 1] value and execute it I do not get an error telling me that 
> there is no context to return to.
>
> May be because the evaluation itself creates a context.

That's certainly true if you run it from a Workspace.

frank

> Stef
>
>

Reply via email to