In fact it seems that’s no longer true, I guess thanks to the ocamlnat/ocaml API unification done by @AltGr upstream (thanks!).
I had a closer look at the error you reported it is triggered by the test here. This doesn’t prevent topfind
from loading on 4.14.2 but it does on 5.2.0~rc1
. However even on 4.14.2
it seems to fail to load libraries correctly I have opened an issue.
I’m glad to report that this is fixed. And with:
> cat ~/.config/ocaml/init.ml
#use "down.top"
#use "omod.top"
you can now simply invoke ocaml
or ocamlnat
regardless (also tested with 5.2.0~rc1).
> ocaml
OCaml version 4.14.2
Enter #help;; for help.
Down v0.3.0-7-ge3a4f38 loaded. Type Down.help () for more info.
Omod v0.0.4-3-gb0d2684 loaded. Type Omod.help () for more info.
# ^D
> ocamlnat
OCaml version 4.14.2 - native toplevel
Enter #help;; for help.
Down v0.3.0-7-ge3a4f38 loaded. Type Down.help () for more info.
Omod v0.0.4-3-gb0d2684 loaded. Type Omod.help () for more info.
# ^D
For those interested I also updated ocaml-repo-ocamlnat
with 4.14.2
and 5.2.0~rc1
. I will make new omod
and down
releases soon.