Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Exceptions/Slate/exceptions-1.slate
Normal file
4
Task/Exceptions/Slate/exceptions-1.slate
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
se@(SceneElement traits) doWithRestart: block
|
||||
[
|
||||
block handlingCases: {Abort -> [| :_ | ^ Nil]}
|
||||
].
|
||||
18
Task/Exceptions/Slate/exceptions-2.slate
Normal file
18
Task/Exceptions/Slate/exceptions-2.slate
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
conditions define: #Abort &parents: {Restart}.
|
||||
"An Abort is a Restart which exits the computation, unwinding the stack."
|
||||
|
||||
_@lobby abort
|
||||
[
|
||||
Abort signal
|
||||
].
|
||||
_@(Abort traits) describeOn: console
|
||||
[
|
||||
console ; 'Abort evaluation of expression\n'
|
||||
].
|
||||
|
||||
"This will call:"
|
||||
c@(Condition traits) signal
|
||||
"Signalling a Condition."
|
||||
[
|
||||
c tryHandlers
|
||||
].
|
||||
1
Task/Exceptions/Slate/exceptions-3.slate
Normal file
1
Task/Exceptions/Slate/exceptions-3.slate
Normal file
|
|
@ -0,0 +1 @@
|
|||
(fileName endsWith: '.image') ifTrue: [error: 'Image filename specified where Slate source expected. Make sure you run slate with the -i flag to specify an image.'].
|
||||
Loading…
Add table
Add a link
Reference in a new issue