-
Notifications
You must be signed in to change notification settings - Fork 20
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
ScopeProxy doesn't update when c++ symbol updates #10
Comments
Yes, on the Cling side, the redeclaration simply masks the first declaration. Ie., there are 2 global variables named Note that the same is true in Cling:
Again, this is because a redeclaration isn't a replacement. |
I see. Thanks for the explanation. And to be clear, you mean symbol lookups are slow, but looking up new values at the same address is fine to do each time right? |
Yes. Lookups are slow b/c on the Python side, all that is known is that name
Thus storing " |
Here's a complete reproducible example:
I would expect the 2nd eval of
cppyy.gbl.x
to return2
but it seems to have cached the value1
until I explicitly delete the cached value.The text was updated successfully, but these errors were encountered: