I brought this up before and it was mentioned that it would be added eventually (I think there are some keyword argument machinery updates forthcoming).
https://github.com/JuliaLang/julia/issues/5230 -Jacob On Fri, Apr 4, 2014 at 6:35 AM, andrew cooke <[email protected]> wrote: > code_native takes a tuple of types that are used to find the method to be > compiled / displayed. > > But how does those types work for keyword arguments? I am getting "ERROR: > no method found for the specified argument types". > > I have tried omitting the types altogether, or specifying them in the > order declared. > > Here's a simple example: > > julia> function bar(a) > a > end > bar (generic function with 1 method) > > julia> code_native(bar, (Int,)) > .text > Filename: none > Source line: 2 > push RBP > mov RBP, RSP > Source line: 2 > mov RAX, RDI > pop RBP > ret > > julia> function baz(a; b=0) > a > end > baz (generic function with 1 method) > > julia> code_native(baz, (Int,)) > Warning: Unable to find function pointer > ERROR: no method found for the specified argument types > in _dump_function at reflection.jl:134 > in code_native at reflection.jl:140 > > julia> code_native(baz, (Int, Int)) > ERROR: no method found for the specified argument types > in _dump_function at reflection.jl:134 > in code_native at reflection.jl:140 > > Thanks, > Andrew >
