Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage example in README #70

Open
rcnlee opened this issue May 4, 2017 · 0 comments
Open

Usage example in README #70

rcnlee opened this issue May 4, 2017 · 0 comments

Comments

@rcnlee
Copy link

rcnlee commented May 4, 2017

Hello,

Does the usage example in the readme still work? It seems that the Environment function signature doesn't exist?

julia> function foo(n)
       x=n+1
       ((BigInt[1 1; 1 0])^x)[2,1]
       end
foo (generic function with 1 method)

julia> interp=enter(foo, Environment(Dict(:n=>20), Dict{Symbol,Any}()))
ERROR: MethodError: no method matching ASTInterpreter.Environment(::Dict{Symbol,Int64}, ::Dict{Symbol,Any})
Closest candidates are:
  ASTInterpreter.Environment(::Any, ::Any, ::Any, ::Any) at C:\Users\rcnlee\.julia\v0.5\ASTInterpreter\src\ASTInterpreter.jl:47
  ASTInterpreter.Environment{T}(::Any) at sysimg.jl:53

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant