What's a good way to add method to `Base.MainInclude.eval`?

Add

Core.eval(m::Module, c::GeneratedCode) = Core.eval(m, c.code)

should work. The new eval function created within every module is actually just something like eval(x) = Core.eval(@__MODULE__, x).

1 Like