We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
minimal working example:
julia> using Transducers julia> struct test a b test(x) = new(x); end julia> t =test(3) test(3, #undef) julia> Transducers.restack(t) ERROR: UndefRefError: access to undefined reference Stacktrace: [1] macro expansion @ ~/.julia/packages/Transducers/q4vZD/src/AutoObjectsReStacker.jl:37 [inlined] [2] restack(x::test) @ Transducers.AutoObjectsReStacker ~/.julia/packages/Transducers/q4vZD/src/AutoObjectsReStacker.jl:16 [3] top-level scope @ REPL[8]:1
I think these kind of objects are 'proper' julia objects. It's probably only a matter of filtering out the fieldnames that are defined in restack.
The text was updated successfully, but these errors were encountered:
Right, this shouldn't throw.
Sorry, something went wrong.
attempt at fixing JuliaFolds#497
200ab8f
this is the kind of 'fix' I had in mind, but it's not very pretty
Fix restack for struct with undef fields (#498)
1f2ac2c
fix #497
Successfully merging a pull request may close this issue.
minimal working example:
I think these kind of objects are 'proper' julia objects. It's probably only a matter of filtering out the fieldnames that are defined in restack.
The text was updated successfully, but these errors were encountered: