summaryrefslogtreecommitdiff
path: root/src/lisp/test.lisp
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2006-05-03 20:43:36 +0000
committerRich Hickey <richhickey@gmail.com>2006-05-03 20:43:36 +0000
commit0f37571e76e21f39e3c3696a5d591004dd572085 (patch)
treea2dff9d3af328fab7989e0ad8523dd7007079c5f /src/lisp/test.lisp
parent66a1be8e45bb2aac3efdefa50a028d0851b6c9e8 (diff)
added try
Diffstat (limited to 'src/lisp/test.lisp')
-rw-r--r--src/lisp/test.lisp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lisp/test.lisp b/src/lisp/test.lisp
index 128eecda..16c43539 100644
--- a/src/lisp/test.lisp
+++ b/src/lisp/test.lisp
@@ -85,3 +85,22 @@
(defn fg (x)
y)
+
+(defn ftry (x)
+ (try
+ (foo x)
+ nil
+ (bar x))
+ (try
+ (let ((ex x))
+ (try
+ (foo x)
+ (fred ex)
+ (bar x)))
+ (foo x)
+ (fred ex)
+ (bar x))
+ (try
+ (foo x)
+ (fred ex)
+ (bar x))) \ No newline at end of file