|
|
Log in / Subscribe / Register

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Posted Mar 22, 2022 12:53 UTC (Tue) by wtarreau (subscriber, #51152)
In reply to: Beingessner: Rust's Unsafe Pointer Types Need An Overhaul by NYKevin
Parent article: Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

> To be fair, C does have the restrict keyword. But that's more or less the opposite of register or Rust's borrow checker

Kevin, could you please explain me "restrict" ? I've started to see it a few years ago in includes and man pages, and all info I've read on it were incomprehensible to me. I've always been interested in strong typing (and am using const a lot). I'd like to know if "restrict" may bring me anything at all or if I shouldn't care.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds