Programatically abandoning

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Programatically abandoning

laura
Hi all,

How can i within a method, programatically  produce the same effect that would have abandoning a raised debug window?


Best,
Laura
Reply | Threaded
Open this post in threaded view
|

Re: Programatically abandoning

Ben Coman
 
search for "Abandon the protected block"

On Fri, Mar 6, 2015 at 6:52 AM, Laura Risani <[hidden email]> wrote:
Hi all,

How can i within a method, programatically  produce the same effect that would have abandoning a raised debug window?


Best,
Laura

Reply | Threaded
Open this post in threaded view
|

Re: Programatically abandoning

abergel
In reply to this post by laura
Hi!

Simply put a block [ … ] on: Error do: [ ]

For example:

10 timesRepeat: [ [ 1 / 0 ] on: Error do: [ "do nothing" ] ]

Cheers,
Alexandre


> On Mar 5, 2015, at 5:52 PM, Laura Risani <[hidden email]> wrote:
>
> Hi all,
>
> How can i within a method, programatically  produce the same effect that would have abandoning a raised debug window?
>
>
> Best,
> Laura

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: Programatically abandoning

laura
Hi Ben , hi Alexandre ,

Excellent!
I wasn't aware of the fact that the exception handling bubbles back to senders. Should reread that chapter.

Love,
Laura

On Thu, Mar 5, 2015 at 8:22 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

Simply put a block [ … ] on: Error do: [ ]

For example:

10 timesRepeat: [ [ 1 / 0 ] on: Error do: [ "do nothing" ] ]

Cheers,
Alexandre


> On Mar 5, 2015, at 5:52 PM, Laura Risani <[hidden email]> wrote:
>
> Hi all,
>
> How can i within a method, programatically  produce the same effect that would have abandoning a raised debug window?
>
>
> Best,
> Laura

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.