let add x y =
x + y
let hello name =
let f = add 1 in
let text = Format.sprintf "Hello, %s (%d)!" name (f 42) in
print_endline text
let () = hello "world"
Inside hello, add is listed under "Heap" variables, but "Goto Closure Code Location" for it gives a "No closure code location" error. It's not entirely broken though, because it works for Stdlib things under "Global" variables at least.
When debugging this program:
Inside
hello
,add
is listed under "Heap" variables, but "Goto Closure Code Location" for it gives a "No closure code location" error. It's not entirely broken though, because it works forStdlib
things under "Global" variables at least.