memory.ml, conventions
Few remarks about memory.ml:
- use labels for the create function:
let create ~(heapsize : int) ~(stacksize : int) : t =
-
print_heap
should be placed inheap.ml
and be calledprint
- avoid the pattern
let _ = some_expr
in when the return type is unit and writesome_expr;
instead - Remove the useless module path
Utils.
since the utils module is opened