Skip to content

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

@ddeclerck

Description

@ddeclerck

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions