savi-lang / savi

A fast language for programmers who are passionate about their craft.
BSD 3-Clause "New" or "Revised" License
157 stars 12 forks source link

Deprecate `CPointer.usize` in favor of `CPointer.address`. #291

Closed jemc closed 2 years ago

jemc commented 2 years ago

We'll also deprecate from_usize in favor of from_address, but from_address itself is also in need of deprecation because it makes the faulty assumption that a pointer's value can come from its address alone. On CHERI hardware this is not true, because the pointer value contains both an address and extra information.