We should try to auto-init the library early, rather than relying on a call from main.
Because:
some strings are translated statically
there is no really well defined entry points (or main function) in OCaml
So the library should auto-init, using env variables and command line args. The current init with args should just ignore command line arguments, or check that they match previous ones. If no match between what has been used for auto-init and when calling init, just throw a warning telling every statically translated strings.
This feature request has been migrated from artifact #536 on forge.ocamlcore.org. It was assigned to user102.
user102 posted on 2010-03-06 16:08:28:
We should try to auto-init the library early, rather than relying on a call from main.
Because:
So the library should auto-init, using env variables and command line args. The current init with args should just ignore command line arguments, or check that they match previous ones. If no match between what has been used for auto-init and when calling init, just throw a warning telling every statically translated strings.