> Thanks for the reply. So I don't believe I define any global variables in > the script itself. But I'm thinking this line: > "*NOTE:* All code in the REPL is evaluated in global scope, so a variable > defined and assigned at toplevel will be a *global* variable." > > might answer my own question? Am I basically running my entire script in > 'global scope'?
you should be able to run your model with a function at the REPL prompt, say main(). Further, the function and the functions it calls should not use any non-const global variables. Bad: module MyMod v1 = 4 main() = v1+1 end Good: module MyMod const v1 = 4 main() = v1+1 end
