Can someone help me understand why the following loop has a deprecation warning in 0.7?
julia> t = 0.0; julia> for j=1:10 t += 0.1; end ┌ Warning: Deprecated syntax `implicit assignment to global variable `t``. │ Use `global t` instead. └ @ none:0
Other than just putting a
global in to eliminate the warning, is there a “correct” way to accomplish this? I’d been going out of my way to avoid using globals, thus far.