Skip to content

Commit ea953e9

Browse files
committed
add a note about 0_usize and null
1 parent 8bff059 commit ea953e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

active_discussion/representation.md

+2
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ To start, we will create threads for each major categories of types
149149
- When using the C ABI, these map to the C pointer types, presumably
150150
- Raw pointers
151151
- Effectively same as integers?
152+
- Is `ptr::null` etc guaranteed to be equal in representation to `0_usize`?
153+
- C does guarantee that `0` when cast to a pointer is NULL
152154
- Representation knobs:
153155
- Custom alignment ([RFC 1358])
154156
- Packed ([RFC 1240] talks about some safety issues)

0 commit comments

Comments
 (0)