Add super:: and global:: namespaces (Fix #480)
This treats each function as a new namespace. if
statements for example still let you alter outer scopes like normal.
Note: global::
will include stuff in outer if statements, e.g.
if test 1 == 1
let a = 1
fn example
echo "${global::a}"
end
example
end
Not sure if this is what you expected or not, but it's the most consistent with super.
EDIT: WARNING: This does not apply to functions. Is this what you wanted or should I revert the commit that excluded functions from this behavior?
Edited by jD91mZM2