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 /parsing/coqlib.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 'parsing/coqlib.ml')
| -rw-r--r-- | parsing/coqlib.ml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/parsing/coqlib.ml b/parsing/coqlib.ml index 94c23ef197..b0a7f3a8a2 100644 --- a/parsing/coqlib.ml +++ b/parsing/coqlib.ml @@ -20,10 +20,11 @@ let glob_My_special_variable_nat = ConstRef myvar_path let reference dir s = let dir = "Coq"::"Init"::[dir] in + let id = id_of_string s in try - Nametab.locate_in_absolute_module dir (id_of_string s) + Nametab.locate_in_absolute_module dir id with Not_found -> - anomaly ("Coqlib: cannot find "^(string_of_qualid (make_qualid dir s))) + anomaly ("Coqlib: cannot find "^(string_of_qualid (make_qualid dir id))) let constant dir s = Declare.constr_of_reference Evd.empty (Global.env()) (reference dir s) |
