X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Fsrc%2Fbasic_ag%2FbagEnvironment.ml;h=30e3e992f2ed4f00e8375f0fdfd9c7ff4798545d;hb=39b42ed90bc74c8b6293842f1ac4aca60fc0c37e;hp=04681cfeee6cb7cb0934797782774490722b71fe;hpb=bb2a0b22a2c38b59ca664b550f34e5e40e6f04c7;p=helm.git diff --git a/helm/software/lambda-delta/src/basic_ag/bagEnvironment.ml b/helm/software/lambda-delta/src/basic_ag/bagEnvironment.ml index 04681cfee..30e3e992f 100644 --- a/helm/software/lambda-delta/src/basic_ag/bagEnvironment.ml +++ b/helm/software/lambda-delta/src/basic_ag/bagEnvironment.ml @@ -11,14 +11,14 @@ module U = NUri module L = Log -module H = U.UriHash -module Y = Entity -module B = Bag +module K = U.UriHash +module E = Entity +module Z = Bag -exception ObjectNotFound of B.message +exception ObjectNotFound of Z.message let hsize = 7000 -let env = H.create hsize +let env = K.create hsize (* Internal functions *******************************************************) @@ -32,8 +32,8 @@ let error uri = raise (ObjectNotFound (L.items1 (U.string_of_uri uri))) let set_entity f (a, uri, b) = let age = get_age () in - let entry = (Y.Apix age :: a), uri, b in - H.add env uri entry; f entry + let entry = (E.Apix age :: a), uri, b in + K.add env uri entry; f entry let get_entity f uri = - try f (H.find env uri) with Not_found -> error uri + try f (K.find env uri) with Not_found -> error uri