ocaml-community / utop

Universal toplevel for OCaml
Other
833 stars 110 forks source link

Utop setting Sys.interactive to false when running script #477

Open ddeclerck opened 5 months ago

ddeclerck commented 5 months ago

Hi, I noticed Utop sets Sys.interactive to false when given a script - which is a difference with respect to the original OCaml toplevel. This is a bit inconvenient since I'm using Sys.interactive to skip Dynlink.load calls when running under a toplevel (and Dynlink itself uses Sys.interactive to fail gracefully under a toplevel). Is this something that could be fixed ?