|
|
Subscribe / Log in / New account

C can't do provenance

C can't do provenance

Posted Sep 27, 2024 8:37 UTC (Fri) by Wol (subscriber, #4433)
In reply to: C can't do provenance by NYKevin
Parent article: Linus and Dirk on succession, Rust, and more

Probably the only way round it is to declare a new --pointer-provenance flag - which cannot be the default - which then says any and all integer<->pointer conversions that can be detected will be treated as pointer provenance errors by the compiler.

Bit like the laws of the Medes and the Persians :-) You're not declaring such conversions illegal, you're just saying that you're not allowed to use them in combination with pointer provenance.

Cheers,
Wol


to post comments


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