Reload reloads the *package* not the module, 
see http://docs.julialang.org/en/release-0.4/stdlib/base/#Base.reload.

On Sunday, January 3, 2016 at 5:16:07 PM UTC+10, Greg Plowman wrote:
>
> This seemed a little non-obvious to me as well.
>
> I guess the take-away is that "loading" a module (via any means, not just 
> reload??) loads the entire *file* containing the module, not just the 
> stuff between module Foo end.
> Only the stuff between module Foo end is scoped to the module, but the 
> entire file is loaded.
>
> Is this correct?
>
>
> On Sunday, January 3, 2016 at 3:50:58 AM UTC+11, Alexander Ranaldi wrote:
>
>> Hello,
>>
>> Consider the following code which is in the file Foo.jl
>>
>> module Foo
>>
>>
>> function bar(x, y)
>>     x + y
>> end
>>
>>
>> end
>>
>> reload("Foo")
>>
>>
>> Then, at the REPL:
>>
>> julia> include("Foo.jl")
>>
>> Julia does not return. Can someone help me understand what is happening 
>> here? Is the module being infinitely reloaded?
>>
>> Thank you
>>
>

Reply via email to