-
Notifications
You must be signed in to change notification settings - Fork 1.7k
dart:ffi Void size one byte or unknown #35879
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
Comments
We can allow pointer arithmetic on a |
We already allow |
Right, I'm just saying that we could allow |
It is not C or C++ semantics, it's a non standard extension in GNU C.
https://gcc.gnu.org/onlinedocs/gcc/Pointer-Arith.html I prefer keeping things consistent with regard to being sized or not. Sized:
Not sized:
Everything that is sized can be used in Note that in our implementation before #37254 we require If we use extension methods we could even try using |
👍 |
Uh oh!
There was an error while loading. Please reload this page.
Should
Void
have a size of 1 byte, or an unknown size.Defining a size would allow the following
Keeping
Void
opaque, not knowing its size would disallow allocate and sizeOf:cc @sjindel-google
The text was updated successfully, but these errors were encountered: