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

RFC: Eval scope #9

Merged
merged 1 commit into from
Feb 15, 2013
Merged

RFC: Eval scope #9

merged 1 commit into from
Feb 15, 2013

Conversation

aviks
Copy link
Contributor

@aviks aviks commented Feb 15, 2013

As a replacement for #7 . I think this is a slightly cleaner/simpler solution.

@timholy @rened : Thoughts? We can merge #7 if you don't like this.

Thanks to @timholy for discovering the trick to get current module.

julia> function tst(a); return a*2; end
# method added to generic function tst

julia> require("ZMQ/src/RPCJuliaSer"); using RPCJuliaSer; run_server()
julia> require("ZMQ/src/RPCJuliaSer"); using RPCJuliaSer; c,r = launch_client()
(ZMQContext(Ptr{Void} @0x00000001038a03f0),ZMQSocket(Ptr{Void} @0x000000010389c0e0))

julia> zmqcall(r, :tst, 2)
4

@timholy
Copy link
Contributor

timholy commented Feb 15, 2013

Looks good to me, I like it.

aviks added a commit that referenced this pull request Feb 15, 2013
@aviks aviks merged commit 648675a into master Feb 15, 2013
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

Successfully merging this pull request may close these issues.

2 participants