diff options
| author | herbelin | 2001-02-16 15:58:48 +0000 |
|---|---|---|
| committer | herbelin | 2001-02-16 15:58:48 +0000 |
| commit | 3c248785237d8dea037da274f4acc0229894de93 (patch) | |
| tree | 4501aca5e725d5f62ffd9f959a8956f30bf432eb /contrib/ring/ring.ml | |
| parent | 649e7e98e0067a7ae2a3990b9629dcec66b47497 (diff) | |
ident au lieu de string pour le nom de base de qualid
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1395 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/ring/ring.ml')
| -rw-r--r-- | contrib/ring/ring.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/ring/ring.ml b/contrib/ring/ring.ml index b3421c9693..7b3b8f6f63 100644 --- a/contrib/ring/ring.ml +++ b/contrib/ring/ring.ml @@ -27,10 +27,11 @@ let constr_of com = Astterm.interp_constr mt_evd (Global.env()) com let constant dir s = let dir = "Coq"::"ring"::dir in + let id = id_of_string s in try - Declare.global_reference_in_absolute_module dir (id_of_string s) + Declare.global_reference_in_absolute_module dir id with Not_found -> - anomaly ("Ring: cannot find "^(string_of_qualid (make_qualid dir s))) + anomaly ("Ring: cannot find "^(string_of_qualid (make_qualid dir id))) (* Ring_theory *) |
