Oh, I see. Thanks. At least now I know. Cheers, Daniel.
On Saturday, 30 January 2016 17:50:18 UTC+1, Yichao Yu wrote: > > This is documented[1]. Not sure if there's plan to change that. > > [1] > http://julia.readthedocs.org/en/latest/manual/methods/?highlight=keyword#note-on-optional-and-keyword-arguments > > > On Saturday, 30 January 2016 17:54:07 UTC+1, Andrew wrote: > > I see in the manual > http://docs.julialang.org/en/latest/manual/methods/#note-on-optional-and-keyword-arguments > > that: > > "Keyword arguments behave quite differently from ordinary positional > arguments. In particular, they do not participate in method dispatch. > Methods are dispatched based only on positional arguments, with keyword > arguments processed after the matching method is identified." > > I don't think you defined 2 different methods. You defined one method > taking no positional arguments and a bunch of keyword arguments. Then you > overwrote that method. >
