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
Original bug ID: 1662 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
OCaml 3.04, 3.06 ou 3.06+25 (2003-03-13)
ocaml
float_of_string "";;
: float = 0.
int_of_string "";;
Exception: Failure "int_of_string".
float_of_string " ";;
Exception: Failure "float_of_string".
C'est pas très consistant. Pourquoi on n'a pas une exception
Invalid_argument "float_of_string" avec float_of_string sur la chaine vide ?
--
Maxence
The text was updated successfully, but these errors were encountered:
Sans doute pas Invalid_argument mais plutôt Failure "float_of_string",
non ? (Sinon il faudra matcher les deux exceptions systématiquement à
l'appel de float_of_string ET changer le comportement de
int_of_string).
Oui, bien sur, je voulais dire Failure "float_of_string". Mes doigts ont
fourché :-)
C'est pas très consistant. Pourquoi on n'a pas une exception
Invalid_argument "float_of_string" avec float_of_string sur la chaine vide ?
--
Maxence
Sans doute pas Invalid_argument mais plutôt Failure "float_of_string",
non ? (Sinon il faudra matcher les deux exceptions systématiquement à
l'appel de float_of_string ET changer le comportement de
int_of_string).
Si aucune opposition, je me propose de faire cette modification
(float_of_string "" ==> Exception: Failure "float_of_string").
Original bug ID: 1662
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
OCaml 3.04, 3.06 ou 3.06+25 (2003-03-13)
float_of_string "";;
int_of_string "";;
Exception: Failure "int_of_string".
float_of_string " ";;
Exception: Failure "float_of_string".
C'est pas très consistant. Pourquoi on n'a pas une exception
Invalid_argument "float_of_string" avec float_of_string sur la chaine vide ?
--
Maxence
The text was updated successfully, but these errors were encountered: