change the contents of a global variable from another module in Julia
<p>I have two modules, one called mainLoop and the other called subroutines:</p>

<pre><code>module mainLoop
using subroutines
export memory
memory = zeros(Int,10)
foo(UInt32(17))
print(memory,"\n")

end

module subroutines
using mainLoop
export foo

function foo(x::UInt32)
  mainLoop.memory[1]=x
end
end
</code></pre>

<p>I can't figure out how to change the contents of the array called memory from the subroutine module. I don't have the option of passing the array as an argument to the function so I have to use a global variable. In the <a href="http://docs.julialang.org/en/release-0.5/manual/variables-and-scoping/" rel="noreferrer">documentation</a>, it states: </p>

<blockquote>
  <p>"Modules can introduce variables of other modules into their scope through the using or import statements or through qualified access using the dot-notation, i.e. each module is a so-called namespace. Note that variable bindings can only be changed within their global scope and not from an outside module."</p>
</blockquote>

<p>By variable bindings, does it mean that you can't change the variable contents?</p>