aboutsummaryrefslogtreecommitdiff
path: root/ch09/9_a_1.txt
diff options
context:
space:
mode:
Diffstat (limited to 'ch09/9_a_1.txt')
-rw-r--r--ch09/9_a_1.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/ch09/9_a_1.txt b/ch09/9_a_1.txt
new file mode 100644
index 0000000..0fa7bb6
--- /dev/null
+++ b/ch09/9_a_1.txt
@@ -0,0 +1,13 @@
+-- Is the order in which we call bracket and handle important? Why?
+
+-- The assignment is not completely clear. The 'bracket' function has three
+-- actions. It's not clear what the order means here. When changing the order of
+-- the 'bracket' and 'handle', 'handle' can be used in just one action or in
+-- more of them.
+--
+-- Let's assume that changing the order means moving the 'handle' call to the
+-- "use" action of the 'bracket' so that it covers that whole action.
+
+-- The order is important. When the order is changed (see the assumption above),
+-- exceptions thrown in the "acquire" and "release" actions will not be caught
+-- by the 'handle' function.