You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Je sais que c'est quasiment impossible à fixer, mais...
$ ocaml
Objective Caml version 3.00+24 (2001-03-03)
let x = ref [];;
val x : '_a list ref = {contents=[]}
(List.hd !x + 1, not 3);;
This expression has type int but is here used with type bool
x;;
: int list ref = {contents=[]}
Le type de x a changé bien que ma seconde expression ait été
rejetée...
Bonjour Francois,
C'est loin d'etre impossible, et il me semble avoir discute' avec Didier
sur comment ca peut se fait pour un cout raisonnable.
Cependant, l'interet semble limite': ce n'est pas le seul phenomene
irreversible dans le toplevel. Par exemple des qu'on utilise la commande
#load pour rechager un module dont l'interface a ete modifiee, la nouvelle
implementation est chargee mais pas l'interface. Ca a des consequences plus
grave, comme des core-dump intempestifs...
Original bug ID: 313
Reporter: administrator
Status: closed
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Bug description
Bonjour,
Je sais que c'est quasiment impossible à fixer, mais...
$ ocaml
Objective Caml version 3.00+24 (2001-03-03)
let x = ref [];;
val x : '_a list ref = {contents=[]}
(List.hd !x + 1, not 3);;
This expression has type int but is here used with type bool
x;;
Le type de x a changé bien que ma seconde expression ait été
rejetée...
--
François Pottier
Francois.Pottier@inria.fr
http://pauillac.inria.fr/~fpottier/
The text was updated successfully, but these errors were encountered: