Hacker News new | ask | show | jobs
by Someone 1033 days ago
> Back in 89 […] `restrict` was actually a keyword.

Was it? I thought it’s more recent. https://en.wikipedia.org/wiki/Restrict seems to agree (“In the C programming language, restrict is a keyword, introduced by the C99 standard,[1] that can be used in pointer declarations”), as does https://en.cppreference.com/w/c/language/restrict (“restrict type qualifier (since C99)”)

Was there an older usage?

1 comments

I've used several pre-C99 embedded compilers that supported restrict. IIRC, probably of mid 90s vintage.