From 2e2d7f6a9b116dac2fa20be657c916cb498c1508 Mon Sep 17 00:00:00 2001 From: Estevan Castilho Date: Sat, 19 Sep 2026 01:08:28 +0000 Subject: Do not assume that the hash of an object is its storage address --- lib/protocols/Addressable.mli | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/protocols/Addressable.mli (limited to 'lib/protocols/Addressable.mli') diff --git a/lib/protocols/Addressable.mli b/lib/protocols/Addressable.mli new file mode 100644 index 0000000..2d9c14d --- /dev/null +++ b/lib/protocols/Addressable.mli @@ -0,0 +1,11 @@ +type t + +class type implementation = object + method address : Concepts.Hash.hash +end + +val make : #implementation -> Handle.protocol + +val from : Handle.t -> t Handle.interface option + +val address : t Handle.interface -> Concepts.Hash.hash -- cgit v1.2.3