From 3c248785237d8dea037da274f4acc0229894de93 Mon Sep 17 00:00:00 2001 From: herbelin Date: Fri, 16 Feb 2001 15:58:48 +0000 Subject: 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 --- parsing/coqlib.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'parsing/coqlib.ml') 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) -- cgit v1.2.3