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
Use Main instead of @__MODULE__
to hold memoization Dict
#46
Conversation
It seems odd that we have to call |
* @__MODULE__ resolves to Memoize when running this code, which results in `WARNING: eval into closed module Memoize`
e06593f
to
c4d39de
Compare
I think the point of the current version is to use the same But I think the same thing could be accomplished by using a different (BTW, @cstjean, would you like commit access?) |
Okay, when changing it to use a different dict for different methods of the same function, the tests at https://github.com/JuliaCollections/Memoize.jl/blob/master/test/runtests.jl#L257-L266 fail. The original code was put in to test for issue #5, although it does something slightly different. I'm not sure that that test is something we need to support. Thoughts? |
Okay, I'm in too much of a hurry. I think The main issue with using separate dictionaries for separate methods of the same function (say, using a |
I'm going to merge this for now, since it's an improvement over the current state, and then create an issue to explore removing |
This can be fixed by using a deterministic symbol for the dict name, like |
I'd be happy to have commit access, although I can't promise much dev time in the short term. |
Okay, that makes sense.
Great, and no problem--invite sent. |
@__MODULE__
resolves to Memoize when running this code, which resultsin
WARNING: eval into closed module Memoize
Closes #32, Closes #33.
Cc: @cstjean