You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
I've recently ran into an issue with Proteus, namely that
(let-mutable [a 3
b (let-mutable [c 1 ]
c)]
b)
will yield
CompilerException java.lang.ClassCastException: java.lang.Long cannot be cast to proteus.Containers$L, compiling:(proteus.clj:123:1)
After macro-expanding it turns out that read-form gets applied twice to c. After some debugging i've figured out how to address the issue by modifying the code of read-form to
It checks for the presence of :tag in local's metadata, which should only be there if it is being processed by the let-mutable macro at the current level of nesting.
It seems that a corresponding fix to write-form is not necessary.
If the above is correct and there are no stupid mistakes on my part, i can make a pull request.