julia> m = @which sin(1)
sin(x::Real) in Base.Math at special/trig.jl:53
julia> m(20)
ERROR: MethodError: objects of type Method are not callable
Stacktrace:
[1] top-level scope at REPL[5]:1
is one way, not sure it is the best one (both in terms of correctness and performance) but might get you started. Also look at jl_lookup_generic, and jl_apply_generic.