Module within try catch block

julia> try
           module M
           end
       catch y
       end
ERROR: syntax: "module" expression not at top level

Is there a way around this?
Thanks

You could use include or some other form of eval.

2 Likes