On Mon, Nov 14, 2016 at 8:28 PM, Kevin Liu <kvt...@gmail.com> wrote: > Cool, thanks Yichao. I changed module Factor to module FactorNode. Now I got > > > TypeError: is defined: expected Symbol, got > Type{FactorNode.FactorNode.Factor}
Well, as the error message says, you passed a type `FactorNode.FactorNode.Factor` instead of a `Symbol` to `isdefined`. It's unclear what you want to test though given `Factor` was defined right above. > > > (see attachment) > > On Monday, November 14, 2016 at 10:41:43 PM UTC-2, Yichao Yu wrote: >> >> On Mon, Nov 14, 2016 at 7:39 PM, Kevin Liu <kvt...@gmail.com> wrote: >> > >> > >> > On Monday, November 14, 2016 at 10:36:07 PM UTC-2, Kevin Liu wrote: >> >> >> >> Help! (see attachment) >> >> This is not related to reloading. You can't have a global variable >> with the same name of the module since that's already bound to the >> module itself.