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: 1018 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Objective Caml version 3.04+8 (2002-03-13)
Printf.kprintf print_string "%t" (fun x -> x);;
Bus error
(problème identique avec %a)
de plus le manuel n'est pas clair quand au type de la fonction attendu :
pour un ('a,'b,'c) format, il n'est précisé nul part que le type est
('b -> 'c) et non ('b -> unit).
The text was updated successfully, but these errors were encountered:
Ah oui, j'avais pas vu que le type du resultat de printf doit etre egal
au type du resultat des fonctions %a et %t... C'est fixe dans la version
de travail.
de plus le manuel n'est pas clair quand au type de la fonction attendu :
pour un ('a,'b,'c) format, il n'est précisé nul part que le type est
('b -> 'c) et non ('b -> unit).
En effet, il faut lire la description de fprintf et generaliser "stream" et
"unit" en 'b et 'c.
Original bug ID: 1018
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Objective Caml version 3.04+8 (2002-03-13)
Printf.kprintf print_string "%t" (fun x -> x);;
Bus error
(problème identique avec %a)
de plus le manuel n'est pas clair quand au type de la fonction attendu :
pour un ('a,'b,'c) format, il n'est précisé nul part que le type est
('b -> 'c) et non ('b -> unit).
The text was updated successfully, but these errors were encountered: