aboutsummaryrefslogtreecommitdiff
path: root/library/libobject.ml
diff options
context:
space:
mode:
Diffstat (limited to 'library/libobject.ml')
-rw-r--r--library/libobject.ml10
1 files changed, 6 insertions, 4 deletions
diff --git a/library/libobject.ml b/library/libobject.ml
index 31fb81c579..1eb7aea0e4 100644
--- a/library/libobject.ml
+++ b/library/libobject.ml
@@ -45,10 +45,12 @@ let declare_object (na,odecl) =
let apply_dyn_fun f lobj =
let tag = object_tag lobj in
- try
- let dodecl = Hashtbl.find cache_tab tag in f dodecl
- with Not_found ->
- anomaly ("Cannot find library functions for an object with tag "^tag)
+ let dodecl =
+ try
+ Hashtbl.find cache_tab tag
+ with Not_found ->
+ anomaly ("Cannot find library functions for an object with tag "^tag)
+ in f dodecl
let cache_object ((_,lobj) as node) =
apply_dyn_fun (fun d -> d.dyn_cache_function node) lobj