On Mon, Nov 14, 2016 at 10:47 PM, Kevin Liu <kvt...@gmail.com> wrote: > Also, now `function FactorPermute(A::Factor, v::Vector{Int})` won't define, > throws > > TypeError: Tuple: in parameter, expected Type{T}, got Module >
Apparently `Factor` is still a module. I have no idea what's the full code. > (see attachment) > > Do I `include("Factor.jl") before `function FactorPermute()`? > > > > On Tue, Nov 15, 2016 at 1:35 AM, Kevin Liu <kvt...@gmail.com> wrote: >> >> Thanks. I removed the if statement (see attachment). Does indentation >> affect `include("FactorOperations.jl")`? If I pull it back to where `module` >> starts, it says `incomplete module at ... requires end`. Then pushing it >> under `type` defines `module`. >> >> On Mon, Nov 14, 2016 at 11:57 PM, Yichao Yu <yyc1...@gmail.com> wrote: >>> >>> 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. >> >> >