From e66d66508aec54f8044c9a6eba517eb49f74516e Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sun, 17 Sep 2023 15:21:40 +0200 Subject: 9_a_1: Add solution --- ch09/9_a_1.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ch09/9_a_1.txt (limited to 'ch09') 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. -- cgit v1.2.3