[squeak-dev] Re: CurrentReadOnlySourceFiles annoys me ...

Levente Uzonyi leves at caesar.elte.hu
Fri Dec 18 23:55:45 UTC 2015


On Wed, 16 Dec 2015, marcel.taeumel wrote:

> I want to catch all exceptions because it is kind of test code where only
> success matters. :-)  It is an experiment where the participants should
> program stuff and receive a green tick whenever the task is accomplished.
> Raising a debugger when the participant puts a "self halt" or anything into
> the control flow of the test code would confuse the participant.

In that case, you should catch subinstances of Exception. An Exception is 
not an Error, it won't raise a debugger. Actually it will do nothing by 
default.
IMHO you should catch what needs to be cached:
 	Error, Abort, UnhandledError, Halt
>From that list, Abort seems to be unused in the image, so it's a candidate 
for removal.

>
> Conceptionally, CurrentReadOnlySourceFiles is no kind of an exception. Thank

It is an exception. You "throw" it, and when it's resumed, it'll contain 
read-only source files.

> you for the explanation. Can you sketch the steps to transform that into a
> PLV? Why would it take some effort?

Make a new PLV variable which implements the same API, then rewrite the 
users. It takes effort, because it must work while it's being used.


Levente

>
> Bset,
> Marcel
>
>
>
> --
> View this message in context: http://forum.world.st/CurrentReadOnlySourceFiles-annoys-me-tp4867253p4867327.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>
>


More information about the Squeak-dev mailing list