Category:Smalltalk: Difference between revisions

Content added Content deleted
Line 435: Line 435:
[some code] fork "starts a new thread"</lang>
[some code] fork "starts a new thread"</lang>


=== Exception Handling ===
=== Exception Objects and Handlers ===
Originally, Smalltalk used an instance based exception handling scheme, where instances of Signal where created and raised. Now, all implementations have moved to class based exceptions, where the raised exception is a subclass of Exception. As instance based exception handling is still useful in some situations (very lightweight, no need to create a class), some dialects continue to support both.
Originally, Smalltalk used an instance based exception handling scheme, where instances of Signal where created and raised. Now, all implementations have moved to class based exceptions, where the raised exception is a subclass of Exception. As instance based exception handling is still useful in some situations (very lightweight, no need to create a class), some dialects continue to support both.