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: 200 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Hi,
I have two remarks about ocaml.
1/ the function "Parsing.rhs_start" gives sometimes erroneous results;
It seems that it is the case when the lexer have several entrypoints
2/ is there any fundamental reason to restrict the pattern-matching in
the "try-with" construction?
exception Toto of int*int;;
exception Toto of int * int
try raise (Toto(3,2));(4,4)
with Toto(res)-> res
;;
Characters 33-42:
The constructor Toto expects 2 argument(s),
but is here applied to 1 argument(s)
Best regards,
Amok.
The text was updated successfully, but these errors were encountered:
with Toto(res)-> res
;;
Characters 33-42:
The constructor Toto expects 2 argument(s),
C'est parce que la déclaration "Toto of intint" définit un constructeur
avec 2 paramètres, ce qui est différent d'un constructeur avec un seul
paramètre de type couple ("Toto of (intint)").
J'avais suggéré que l'on écrive de tels constructeurs avec la syntaxe
"currifiée" (Toto 3 2 et non Toto(3, 2)), ce qui aide à comprendre pourquoi
"with Toto(res)" est incorrect, mais ça n'a pas eu l'air de déclencher
l'enthousiasme des foules...
Original bug ID: 200
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Hi,
I have two remarks about ocaml.
1/ the function "Parsing.rhs_start" gives sometimes erroneous results;
It seems that it is the case when the lexer have several entrypoints
2/ is there any fundamental reason to restrict the pattern-matching in
the "try-with" construction?
exception Toto of int*int;;
exception Toto of int * int
try raise (Toto(3,2));(4,4)
with Toto(res)-> res
;;
Characters 33-42:
The constructor Toto expects 2 argument(s),
but is here applied to 1 argument(s)
Best regards,
Amok.
The text was updated successfully, but these errors were encountered: