Hi all,
ExceptionSet >> , anException
"Return an exception set that contains the receiver and the argument exception. This is commonly used to specify a set of exception selectors for an exception handler."
self add: anException.
^self
That means that #, actually modifies the receiver instead of answering a copy. Thus, we can observe the following:
Error , Warning , Halt; handles: Halt new "true"
Should we change that? It's really confusing and I would consider it idiosyncratic. On the other hand, code that actually wants to copy an ExceptionSet seems to be pretty rare, and a side-effect-free #, would be more expensive for the interpreter and for the GC.
Best,
Christoph