Re: [julia-users] Re: Reloading module doesn't redefine constant

2016-11-15 Thread Kevin Liu
For some reason, now everything just worked. On Tuesday, November 15, 2016 at 3:09:07 PM UTC-2, Kevin Liu wrote: > > Full code > > https://github.com/hpoit/MLN.jl/blob/master/Factor.jl > https://github.com/hpoit/MLN.jl/blob/master/FactorOperations.jl > > On Tue, Nov 15, 2016 at 3:05 PM, Kevin

Re: [julia-users] Re: Reloading module doesn't redefine constant

2016-11-15 Thread Kevin Liu
Full code https://github.com/hpoit/MLN.jl/blob/master/Factor.jl https://github.com/hpoit/MLN.jl/blob/master/FactorOperations.jl On Tue, Nov 15, 2016 at 3:05 PM, Kevin Liu wrote: > This is weird. Please observe include() in the two attachments I've made. > > On Tue, Nov 15,

Re: [julia-users] Re: Reloading module doesn't redefine constant

2016-11-15 Thread Yichao Yu
On Mon, Nov 14, 2016 at 10:47 PM, Kevin Liu 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

Re: [julia-users] Re: Reloading module doesn't redefine constant

2016-11-15 Thread Yichao Yu
On Mon, Nov 14, 2016 at 10:35 PM, Kevin Liu wrote: > Does indentation affect `include("FactorOperations.jl")`? If I pull it back No. > to where `module` starts, it says `incomplete module at ... requires end`. > Then pushing it under `type` defines `module`. Unclear what you

Re: [julia-users] Re: Reloading module doesn't redefine constant

2016-11-14 Thread Yichao Yu
On Mon, Nov 14, 2016 at 8:28 PM, Kevin Liu 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

Re: [julia-users] Re: Reloading module doesn't redefine constant

2016-11-14 Thread Kevin Liu
Cool, thanks Yichao. I changed module Factor to module FactorNode. Now I got TypeError: is defined: expected Symbol, got Type{FactorNode.FactorNode.Factor} (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

Re: [julia-users] Re: Reloading module doesn't redefine constant

2016-11-14 Thread Yichao Yu
On Mon, Nov 14, 2016 at 7:39 PM, Kevin Liu 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

[julia-users] Re: Reloading module doesn't redefine constant

2016-11-14 Thread Kevin Liu
On Monday, November 14, 2016 at 10:36:07 PM UTC-2, Kevin Liu wrote: > > Help! (see attachment) >