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 error handling routine is broke. Uses goto error: and static if where the error label is not defined in the errored branch.
These lines occur around 1200 in serializer.d
else static if (isPointer!(T)) { static if (isFunctionPointer!(T)) { goto error; } return deserializePointer!(T)(keyOrId, id).value; } else static if (isEnum!(T)) return deserializeEnum!(T)(keyOrId, id); else { error: error(format!(`The type "`, T, `" cannot be deserialized.`)); } }
simply removing the final else should solve the problem and be sufficient.
Actually it doesn't and causes a serialization error to occur for obvious reasons. Better just to put in the error(...) directly and avoid the goto.
"Error: new can only create structs, dynamic arrays or class objects, not bool(a,b)'s
bool(a,b)
This occurs around 1500:
auto pointer = new UnqualfiedBaseType;
But starts earlier. I can see that
instantiated from here: deserializeInternal!(bool function(a, b) ......\D\Libraries\orange\serialization\Serializer.d(1272): instantiated from here: objectStructDeserializeHelper!(Del!(bool function(a, b))) ......\D\Libraries\orange\serialization\Serializer.d(1175): instantiated from here: deserializeObject!(Del!(bool function(a, b)) ......\D\Libraries\orange\serialization\Serializer.d(1689): instantiated from here: deserializeInternal!(Del!(bool function(a, b)) ......\D\Libraries\orange\serialization\Serializer.d(1720): instantiated from here: objectStructDeserializeHelper!(Item)
deserializeInternal!(bool function(a, b)
objectStructDeserializeHelper!(Del!(bool function(a, b)))
deserializeObject!(Del!(bool function(a, b))
deserializeInternal!(Del!(bool function(a, b))
objectStructDeserializeHelper!(Item)
It might be better to handle these better. If they need to be serialized somehow then a custom serializer would need to be used.
The text was updated successfully, but these errors were encountered:
What are you exactly doing? Is there an example you're compiling?
Sorry, something went wrong.
No branches or pull requests
The error handling routine is broke. Uses goto error: and static if where the error label is not defined in the errored branch.
These lines occur around
1200 in serializer.d
simply removing the final else should solve the problem and be sufficient.
Actually it doesn't and causes a serialization error to occur for obvious reasons. Better just to put in the error(...) directly and avoid the goto.
"Error: new can only create structs, dynamic arrays or class objects, not
bool(a,b)
'sThis occurs around 1500:
But starts earlier. I can see that
instantiated from here:
deserializeInternal!(bool function(a, b)
......\D\Libraries\orange\serialization\Serializer.d(1272): instantiated from here:
objectStructDeserializeHelper!(Del!(bool function(a, b)))
......\D\Libraries\orange\serialization\Serializer.d(1175): instantiated from here:
deserializeObject!(Del!(bool function(a, b))
......\D\Libraries\orange\serialization\Serializer.d(1689): instantiated from here:
deserializeInternal!(Del!(bool function(a, b))
......\D\Libraries\orange\serialization\Serializer.d(1720): instantiated from here:
objectStructDeserializeHelper!(Item)
It might be better to handle these better. If they need to be serialized somehow then a custom serializer would need to be used.
The text was updated successfully, but these errors were encountered: