Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recuperation d'erreur au toplevel #2710

Closed
vicuna opened this issue Mar 19, 2001 · 3 comments
Closed

Recuperation d'erreur au toplevel #2710

vicuna opened this issue Mar 19, 2001 · 3 comments

Comments

@vicuna
Copy link

vicuna commented Mar 19, 2001

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;;

  • : int list ref = {contents=[]}

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/

@vicuna
Copy link
Author

vicuna commented Mar 27, 2001

Comment author: administrator

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...

Jacques

@vicuna
Copy link
Author

vicuna commented Mar 27, 2001

Comment author: administrator

Cependant, l'interet semble limite': ce n'est pas le seul phenomene
irreversible dans le toplevel.

Oui, c'est vrai... En fait je le signalais parce que je me demandais
si c'était un problème connu, mais je vois que oui.

--
François Pottier
Francois.Pottier@inria.fr
http://pauillac.inria.fr/~fpottier/

@vicuna
Copy link
Author

vicuna commented Nov 6, 2002

Comment author: administrator

Too hard to get right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant