News for hackers. Stuff that matters.
Re:Why Const Doesn't Make C Code Faster by Gibbon1 on Tuesday August 20, 2019 @09:04PM (#20753789)
Rolling it over I think vaguely along the idea that marking a function as pure is a contract that tells the compiler that the function and it's call tree ultimately shouldn't modify external state.

A function that allocates memory isn't pure, except perhaps iff it frees that memory either itself or by compiler magic. Then perhaps it is.

There are no comments on this comment yet.