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: 1786 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Original bug ID: 1786
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Winfried Dreckmann
Version: OCaml 3.06
OS: Linux PowerPC
Submission from: t2o902p68.telia.com (212.181.191.68)
The function Gc.delete_alarm doesn't work:
let a = Gc.create_alarm (fun () -> print_string "alarm\n");;
val a : Gc.alarm =
Gc.major ();;
alarm
Gc.delete_alarm a;;
Gc.major ();;
alarm
This is the source code for "create_alarm" in "gc.ml":
let create_alarm f =
let a = ref true in
let arec = { active = ref true; f = f } in
finalise call_alarm arec;
a
;;
Shouldn't this be "active = a" in the third line?
Regards,
Winfried Dreckmann
The text was updated successfully, but these errors were encountered: