3 ms·
The semantics of C don't allow for alias analysis. For some cases, the compiler can prove that there are no aliases, but it will have to be conservative and thr
by WalterBright 3y ago
The semantics of C don't allow for alias analysis. For some cases, the compiler can prove that there are no aliases, but it will have to be conservative and throw up its hands most of the time.
An ownership/borrowing system is able to implicitly fulfill the requirements of restrict.