Anonymous user
GNU Smalltalk: Difference between revisions
→Examples: Changed wiki italics back to single quotes
No edit summary |
(→Examples: Changed wiki italics back to single quotes) |
||
(One intermediate revision by one other user not shown) | |||
Line 10:
Some basic Smalltalk code:
===Collections===
Line 153 ⟶ 154:
self error: 'This is a message'
These are actually wrappers for the actual exception raising method, <tt>signal</tt>:
Error signal
Error signal: 'Illegal arguments!'
Exceptions are handled by <code>on:do:</
[ something to do ]
|