diff options
author | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-03-12 23:59:08 +0000 |
---|---|---|
committer | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-03-12 23:59:08 +0000 |
commit | 6d5eee245a85f410ec184353ab9f38ce3aa4e331 (patch) | |
tree | 9260a0fb3662dbeb6837468e30f69f5f862e7893 /kernel/term.mli | |
parent | 3b7ecfa6d4da684a635b2469c2d9a2e1e0ed0807 (diff) |
Term.dest* functions now raise specific DestKO exn instead of Invalid_argument
**Warning** the ml code of plugins may have to be adapted after this.
Concerning coq itself, I've done the adaptations, let's hope I've
forgotten none. In practice, the number of changes are relatively low,
and the code is quite cleaner this way.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16271 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/term.mli')
-rw-r--r-- | kernel/term.mli | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/term.mli b/kernel/term.mli index 753fc990d..65963e3e9 100644 --- a/kernel/term.mli +++ b/kernel/term.mli @@ -262,7 +262,9 @@ val is_small : sorts -> bool (** {6 Term destructors } *) (** Destructor operations are partial functions and - @raise Invalid_argument "dest*" if the term has not the expected form. *) + @raise [DestKO] if the term has not the expected form. *) + +exception DestKO (** Destructs a DeBrujin index *) val destRel : constr -> int |