Hi,

Is there a way to evaluate code that defines modules without replacing
the modules? Eg include'ing a file

--8<---------------cut here---------------start------------->8---
module Foo

type Bar
  baz
end

end
--8<---------------cut here---------------end--------------->8---

this way would be equivalent to

eval(:(type Bar baz end), Foo)

I know that replacing modules is a feature (allows redefinition of types
etc). But sometimes, when developing code interactively, I find that
cumbersome, since that means that instances created previously now have
a different type, etc.

Best,

Tamas

Reply via email to