Thank you. If I do:

function testmodule.bar(baz::ConcreteBaz)
  return baz.value
end

it works. I'm guessing this means that Julia won't look outside of the 
namespace for a function.

It hadn't occurred to me that writing:

function module.fn()
  # ...
end

would work.


On Saturday, July 26, 2014 6:23:16 PM UTC-4, Ivar Nesje wrote:
>
> Yes, this is expected behavior.
>
> You will have to define testmodule.baz() to not create a new function, but 
> extend the existing function with a new method. 
>

Reply via email to