Hacker News new | past | comments | ask | show | jobs | submit login

Your example of aliasing in C is a good one, because this is a case where modern C allows the programmer to give the compiler the necessary information to do a better job. The "restrict" keyword indicates that an object accessed through a given pointer argument cannot alias any other object accessed by the function.



Which doesn't help when you're trying to express anything more complex.

Such as "a won't alias c, but there are no other restrictions".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: