I would love to detect this kind of confusing situation and indicate what's happening better because obviously it's pretty confusing when you first encounter it.
On Fri, Dec 12, 2014 at 4:37 AM, Test This <[email protected]> wrote: > Thanks Stefan. Yes, it looks like this is related to my lack of clear > understanding about include vs. require. > > I am reading the docs John Myles ( > http://julia.readthedocs.org/en/release-0.3/manual/modules/) directed me > to and will report back on whether that helps me fix the issue. > > > > On Thursday, December 11, 2014 11:54:55 PM UTC-5, Stefan Karpinski wrote: >> >> It is possible that you have managed to get into a state where there are >> two different types by the name Params. >> >> >> On Dec 11, 2014, at 9:10 PM, Test This <[email protected]> wrote: >> >> >> I am running into what appears to be weird error. I have this function >> simulate that takes two arguments. When I try to run the file containing >> this function I get >> the following error. I have added println( methods(simulate) ) to the >> code so that you can see its methods. >> >> >> *# 1 method for generic function "simulate":* >> *simulate(params::Params,rseed::Int64) at >> /Users/code/simulationcode.jl:340* >> *ERROR: `simulate` has no method matching simulate(::Params, ::Int64)* >> >> >> Are the 2nd and 3rd lines not contradictory? >> >> Thanks in advance for your help. >> >>
