Ivar's solution worked for me. pi = Base.pi
On Sunday, November 1, 2015 at 12:48:23 PM UTC-5, Kuan Xu wrote: > > I have the same question harven asked - how to reset pi to its factory > value if it was overwritten? > > It seems that nobody answered his questions and I didn't any other threads > discussing this. So bump this. > > > On Sunday, October 27, 2013 at 4:44:17 PM UTC, harven wrote: >> >> I sometimes make the mistake to redefine a bound variable at the repl, >> e.g. >> >> julia> count = 0 # let us make a counter >> 0 # I forgot count is a function provided by >> the default library >> ... >> julia> count(iseven,[1,2,3]) # oops >> ERROR: type: apply: expected Function, got Int64 >> >> Is there a way to set count back to its default value (namely to the >> function count)? >> >> By the way, a warning is issued when I try to redefine the constant pi. >> Maybe this could be extended to all symbols provided by the standard >> library? >> >> julia> pi = 3 >> Warning: imported binding for pi overwritten in module Main >> 3 >> >
