blob: 0fa7bb6321d57b9a38cbb2bd319a4387b12e75c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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.
|