TWiki
>
Compiler Web
>
TransferOfControl
>
CatchThrowTests
(2007-02-13,
JimStambaugh
)
E
dit
A
ttach
CatchThrowTests
CatchThrowTests
Quick Links
Tests That Should Work
Tests That Should Not Work
Quick Links
TransferOfControl
Tests That Should Work
(catch 'a 1)
(catch 'a (catch 'b 1))
(catch 'a (catch 'b 1) 2)
(catch 'a (catch 'b (throw 'a 1) 2))
(catch 'a (catch 'b (throw 'b 1) 2))
(catch 'a (catch 'b (catch 'c (catch 'd (throw 'a 1) 2) 3) 4) 5)
(let ((new-tag (list nil))) (catch new-tag (throw new-tag 'zorch)))
(let ((new-tag)) (catch (setq new-tag (list nil)) (throw new-tag 'zorch)))
(setq temp 'a)
(catch temp (throw temp 1) 2)
(catch 'a (throw temp 1) 2)
(catch temp (throw 'a 1) 2)
(catch 'a (throw 'a temp) 2)
Tests That Should Not Work
(catch 'a (catch 'b (throw 'c 1) 2))
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r4
<
r3
<
r2
<
r1
|
B
acklinks
|
R
aw View
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r4 - 2007-02-13 - 05:07:12 -
JimStambaugh
Compiler
Log In
or
Register
Compiler Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
Webs
Compiler
DevEnvironment
Documentation
Main
Sandbox
Specifications
TWiki
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback