Nullable pointers #3307
Unanswered
Happypig375
asked this question in
Language Ideas
Replies: 2 comments
-
A pointer is effectively stored as a byte* ptr = null;
// is the same as:
byte* ptr = (byte*)0;
if (ptr == null) // "ptr is null" does also work here
{
// do something
} If using |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you mean you want non nullable pointers ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Now that in C# 8 we have nullable reference types, I started annotating an existing library. However, I discovered that pointers cannot be annotated:
Why is this the case? Can't we enable nullables all the way?
Beta Was this translation helpful? Give feedback.
All reactions