The implementation is not trivial to follow, but have a look at
`kwarg_decl` in `base/methodshow.jl`.

This might be a reasonable thing to have as a helper function, if you want
to open a GitHub issue to discuss.

(Be warned: you will pay a severe performance penalty if you try to use
reflection for some kind of runtime meta-dispatch)

On Wed, Jul 6, 2016 at 1:41 AM, Leonardo <[email protected]> wrote:

> There is a way to list all keyword arguments defined by a function f?
> (a sort of reflection?)
>
> e.g.;
>
>
> *having*function f(i::Int; a::AbstractString=0, b::Float64=0.0)
>   ...
> end
>
>
> *how to return a, b from f?*
>
> Many thanks in advance
>
> Leonardo
>
>

Reply via email to