Skip to content

REPL: allow attaching a module other than Main #22562

@StefanKarpinski

Description

@StefanKarpinski

It would be very convenient to be able to eval code in the context of a different module than Main. This could be reflected by the prompt output or be a separate REPL mode or something. The implementation is probably largely just a matter of making references to Main in the REPL code use a global instead that is set to Main initially but can be changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)help wantedIndicates that a maintainer wants help on an issue or pull request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions