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
The default behavior of createinstance(T, args...) does not work if T has only nonstandard inner constructors.
createinstance(T, args...)
T
MWE:
struct A x::Float64 y::Float64 A(x) = new(x, y) end
By default, we should probably bypass the constructor, like Serialization does, see https://github.com/JuliaLang/julia/blob/e24e2f091ad0f9f30ad85bf448130325a3f5c060/stdlib/Serialization/src/Serialization.jl#L1341-L1372 for an example.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The default behavior of
createinstance(T, args...)
does not work ifT
has only nonstandard inner constructors.MWE:
By default, we should probably bypass the constructor, like Serialization does, see https://github.com/JuliaLang/julia/blob/e24e2f091ad0f9f30ad85bf448130325a3f5c060/stdlib/Serialization/src/Serialization.jl#L1341-L1372 for an example.
The text was updated successfully, but these errors were encountered: