I'd like to access global variables from the default values of keywords 
arguments, e.g.:

x = 3
function f(;x=x) #<- this default value of x here should refer to x in the 
global scope which is 3
   ...
end

Is there any way to do this? I had guessed the following might work but it 
doesn't:

function f(;x=(global x; x)) 
   ...
end

Reply via email to