tarides / hackocaml

OCaml hacking ideas, small and large.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go through the OCaml5 tutorial, report issues and potentially fix them

kayceesrk opened this issue · comments

assign to me please?

# Domain.spawn;;
Alert deprecated: module Base.Domain
[2016-09] this element comes from the stdlib distributed with OCaml.
Referring to the stdlib directly is discouraged by Base. You should either
use the equivalent functionality offered by Base, or if you really want to
refer to the stdlib, use Stdlib.Domain instead

Is this due to my .ocamlinit?

 % cat ~/.ocamlinit
#use "topfind";;
#require "base";;
open Base;;

Seb, this is mentioned already #3 (comment). Is that what you were looking for?

Is this due to my .ocamlinit?

yes.

let main () = ...

The unit arg is necessary to make main a function and suspend the evaluation of the RHS expression until the function is applied. Otherwise, the expression on the RHS of = will be evaluated eagerly, and the result will be bound to the variable main.

No problem Seb.