-
Notifications
You must be signed in to change notification settings - Fork 80
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
Types supported by emit #161
Comments
And if emit supports structs, perhaps it should also say only those structs that contain types allowed by emit, which should probably be only |
This is a reasonable choice. |
If by scalars you include enums and errors, I believe the current spec explicitly says that their representations can be target-dependent and do not support casts between them and other types. If that stays, then it is not possible to support emit on those types (or at least not in a way portable across targets). |
I was too lazy to say |
From memory on what was discussed on this topic at the 2017-Apr-25: emit handling headers, arrays (i.e. header stacks), and structs is sufficient to do real work. Being able to emit a 'bitty type' (i.e. Another comment: If someone does want to emit a bit vector allowed by the target, they can certainly do so by putting it into a new header type, making an instance of that type valid, and emitting that (or a struct). So the lack of ability to emit a bit vector directly is not a big restriction. |
We have decided not to change the spec, so I am closing this issue. |
The spec mentions that emit can handle headers, arrays or structs, but does not say what happens if a bit field is passed as argument.
The text was updated successfully, but these errors were encountered: