utilise Ident.unique_name plutot que Ident.name pour les globaux
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3197 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
73be8e29a5
commit
402fa47bfd
|
@ -358,12 +358,12 @@ let toploop_setvalue_pos = 1 (* position of setvalue in module Toploop *)
|
|||
let toploop_getvalue id =
|
||||
Lapply(Lprim(Pfield toploop_getvalue_pos,
|
||||
[Lprim(Pgetglobal toploop_ident, [])]),
|
||||
[Lconst(Const_base(Const_string (Ident.name id)))])
|
||||
[Lconst(Const_base(Const_string (Ident.unique_name id)))])
|
||||
|
||||
let toploop_setvalue id lam =
|
||||
Lapply(Lprim(Pfield toploop_setvalue_pos,
|
||||
[Lprim(Pgetglobal toploop_ident, [])]),
|
||||
[Lconst(Const_base(Const_string (Ident.name id))); lam])
|
||||
[Lconst(Const_base(Const_string (Ident.unique_name id))); lam])
|
||||
|
||||
let toploop_setvalue_id id = toploop_setvalue id (Lvar id)
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ let pr_item env ppf = function
|
|||
| _ ->
|
||||
fprintf ppf "@[<2>%a =@ %a@]"
|
||||
(Printtyp.value_description id) decl
|
||||
(print_value env (getvalue (Ident.name id)))
|
||||
(print_value env (getvalue (Ident.unique_name id)))
|
||||
decl.val_type
|
||||
end;
|
||||
rem
|
||||
|
|
Loading…
Reference in New Issue