]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/components/grafite_engine/grafiteTypes.ml
Destruct: we warn about the substituted variable to remove.
[helm.git] / matita / components / grafite_engine / grafiteTypes.ml
index 0e1b87fa1a6d949e3f36c9bd4d2d2ce1de9269a2..7cb6bef0c37877feb62dd3bf90bd8755e181d2f1 100644 (file)
@@ -31,7 +31,7 @@ exception Command_error of string
 
 let command_error msg = raise (Command_error msg)
 
-class status = fun (b : string) ->
+class virtual status = fun (b : string) ->
  let fake_obj =
   NUri.uri_of_string "cic:/matita/dummy.decl",0,[],[],
    NCic.Constant([],"",None,NCic.Implicit `Closed,(`Provided,`Theorem,`Regular))
@@ -52,4 +52,8 @@ class status = fun (b : string) ->
  end
 
 module Serializer =
- NCicLibrary.Serializer(struct type dumpable_status = status end)
+ NCicLibrary.Serializer(struct
+  type dumpable_s = status
+  let get status = (status : #status :> NCicLibrary.dumpable_status)
+  let set (status : dumpable_s) dump_status = status#set_dumpable_status dump_status
+ end)