julia> foo(;a=1)=a
julia> bar(;o...)=foo(;a=5,o...)
julia> baz(;o...)=foo(;o...,a=5)
julia> bar()
5
julia> baz()
5
julia> bar(a=3)
3
julia> baz(a=3)
3

In this example bar() and baz() give 5 as expected.  However in both 
bar(a=3) and baz(a=3) the value of "a" given in "o..." seems to override 
the a=5 value regardless of the order of "o..." and "a" in the calling 
expression.  How exactly does the assignment of keyword arguments work?

thanks,
deniz

Reply via email to