On Thu, May 5, 2016 at 3:45 PM, Curtis Vogt <[email protected]> wrote:
> I doubt this is possible but is there a way of creating an expression from a
> Method or LambaInfo? Something like:
>
> julia> m = first(methods(open, (AbstractString,)))
> open(fname::AbstractString) at iostream.jl:99
>
> julia> Expr(m)
> ERROR: TypeError: Expr: expected Symbol, got Method
>  in Expr(::Any) at ./boot.jl:270
>  in eval(::Module, ::Any) at ./boot.jl:228
>
>
> I'm running Julia 0.5.0-dev+3898.

What does it mean to comvert a method to a expression.

Reply via email to