* bug ?
@ 1995-01-19 9:47 Jean-Christophe Filliatre
1995-02-01 16:50 ` Pierre Weis
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe Filliatre @ 1995-01-19 9:47 UTC (permalink / raw)
To: caml-list
Bonjour,
En debugguant Coq avec Judicael, nous avons obtenu le resultat surprenant
suivant : soit toto.ml le programme suivant
------------------------
#open "hashtbl";;
let f x =
let t = new 10
in add t x true;
find t x
;;
if f 1 then output_string std_out "ok\n" ; flush std_out
;;
-----------------------
toujours dans le meme repertoire, je fais
-----------------------
% camlc toto.ml
% camlmktop -o essai toto.zo
% camllight essai
ok
> Caml Light version 0.61
#trace "hashtbl__add";;
>> hashtbl__add is now traced.
- : unit = ()
##open "toto";;
hashtbl__add <-- <abstract>
hashtbl__add --> <fun>
hashtbl__add* <-- <poly>
hashtbl__add* --> <fun>
hashtbl__add** <-- <poly>
hashtbl__add** --> ()
#
-----------------------
qu'est-ce qui se passe ?!?!
--Jean-Christophe.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bug ?
1995-01-19 9:47 bug ? Jean-Christophe Filliatre
@ 1995-02-01 16:50 ` Pierre Weis
0 siblings, 0 replies; 2+ messages in thread
From: Pierre Weis @ 1995-02-01 16:50 UTC (permalink / raw)
To: Jean-Christophe Filliatre; +Cc: caml-list
Bonjour,
This is just that the standard library is shared by the compiler and
the user: the compiler uses the same hashtbl__add function as
you. Thus, if you trace it, you can observe that the system uses it
when opening a module! There's nothing wrong here... By the way, don't
try to trace print_string, since once more the trace package uses the
same function, thus ... it's funny.
Pierre Weis
----------------------------------------------------------------------------
Projet Cristal
INRIA, BP 105, F-78153 Le Chesnay Cedex (France)
E-mail: Pierre.Weis@inria.fr
Telephone: +33 1 39 63 55 98
----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-02-01 16:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-01-19 9:47 bug ? Jean-Christophe Filliatre
1995-02-01 16:50 ` Pierre Weis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox