Suppose I have a trivial module

module Foo
x = 1
end

so names(Foo) now includes a Symbol that is === to symbol("x"). I have
two questions:

1. How can I intern symbols into a module programatically, possibly from
outside the module? symbol("Foo.y") does not work (using 3.5).

2. Similarly, how can I unintern symbols? Is this even possible in
Julia? This would be relevant for redefining types.

Thanks,

Tamas


Reply via email to