[julia-users] Re: Need help to understand method dispatch with modules

2014-12-11 Thread samoconnor
If I change the example to use import instead of using... import m1: f import m2: f ... then I get: Warning: ignoring conflicting import of m2.f into Main ?: 7 String: Foo Now Julia spots the problem, but resolves it the opposite way (i.e. the first definition wins).

Re: [julia-users] Re: Need help to understand method dispatch with modules

2014-12-11 Thread Rob J. Goedman
Did you restart the REPL? Rob J. Goedman goed...@mac.com On Dec 11, 2014, at 3:19 PM, samoconnor samocon...@mac.com wrote: If I change the example to use import instead of using... import m1: f import m2: f ... then I get: Warning: ignoring conflicting import of m2.f into Main

Re: [julia-users] Re: Need help to understand method dispatch with modules

2014-12-11 Thread samoconnor
Hi Rob, I don't use the REPL. I have #!/[...]bin/julia on the first line of the script and run ./script.jl from the command line. On Friday, December 12, 2014 10:27:45 AM UTC+11, Rob J Goedman wrote: Did you restart the REPL? Rob J. Goedman goe...@mac.com javascript: On Dec 11,

Re: [julia-users] Re: Need help to understand method dispatch with modules

2014-12-11 Thread Rob J. Goedman
Hmmm, now I think early on I saw you’re on Julia 0.3.0-RC4? I tried it on 0.3.3 and 0.4 both with the same output. Could that explain the difference? Rob J. Goedman goed...@mac.com julia include(/Users/rob/Projects/Julia/Rob/MetaProgramming/meta13.jl) Int: 7 ASCIIString: Foo UTF8String: ∀ x

Re: [julia-users] Re: Need help to understand method dispatch with modules

2014-12-11 Thread samoconnor
I've just done a fresh build from git HEAD (julia version 0.4.0-dev+2067). I don't see any difference in behaviour between 0.3.0-RC4 and 0.4 for the examples I have posted. On Friday, December 12, 2014 10:58:19 AM UTC+11, Rob J Goedman wrote: Hmmm, now I think early on I saw you’re on Julia