-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
serialize doesn't preserve identity of Expr.args #15881
Comments
I don't think it is possible to do this. In fact deserialize shouldn't create any aliasing with the original input. |
No, this is about shared references within an object. We can handle this in some cases, but not all. For efficiency, we don't track the |
Ahh, I didn't realize the RHS of the |
It comes from my backup mechanism. I have to save application state in a file from time to time, because of these crashes. So, after crash it may recover itself from last backup and continue working. I use special tree-like structures (types) for storing all the references inside my AST. This is something like AST meta data (where all variables are, where all functions are and so on). P.S. For now, i'm thinking about rewriting my code and this meta data types especially, to support numeric indexes instead of references. |
Shared references to |
As i understand, I may serialize |
It looks like julia doesn't store references correctly. For example, in this snippet,
T.a
is a reference to block/quote of a function. So, after deserializing, this reference will be broken. Look at the example:This issue is related to this one.
The text was updated successfully, but these errors were encountered: