3 ms·
> pointer addition Isn't it a bit confusing to talk about pointer addition when the example struct is just struct X { y: Y } and thus the addre
by sampo 10y ago
> pointer addition
Isn't it a bit confusing to talk about pointer addition when the example struct is just
struct X {
y: Y
}
and thus the addresses &x and &y are (probably) the same. Maybe the author thinks that &y is obtained as &x+0, but.
- Manishearth 10y agoThe author is generalizing to when there are more fields here.