Often I used my REPL for testing and scratch work. Thus, the variable x gets bound to quite a few things and I redefine it often. However, if I do:
function x(y) return y+1 end
and then later try
x = 5
I am hit with:
ERROR: invalid redefinition of constant x
Looking online, I see that the workspace() function would have taken care of this nicely, but this is no longer available. Additionally, I can’t do:
as I get the same error. (and apparently gc() doesn’t work anymore either). Any suggestions as to how I can circumvent this? I’d really not like to have to close out of the REPL. There are times I have packages precompiled and waiting a few minutes every time I run into this is somewhat annoying.
Thanks for your help.