Is there any way to set all variables in a function global?
Say you have a function set up to eval() some code. The code will assign some variables, but they're unfortunately only visible within the scope of the function. How would one make them global without changing the code to be eval()ed? The current solution is to have the function simply return the code and then eval() the return of the function. Is it possible?
Say you have a function set up to eval() some code. The code will assign some variables, but they're unfortunately only visible within the scope of the function. How would one make them global without changing the code to be eval()ed? The current solution is to have the function simply return the code and then eval() the return of the function. Is it possible?
