▲ | dwattttt 2 days ago | ||||||||||||||||||||||
I imagine it's (implicitly?) referring to avoiding whole-of-program analysis. For example, given a declaration
What's the relationship between the return value and the input? You can't know without diving into 'func' itself; they could be the same pointer or it could return a freshly allocated pointer, without getting into the even more esoteric options.Trying to solve this without recursively analysing a whole program at once is infeasible. Rust's approach was to require more information to be provided by function definitions, but that's new syntax, and not backwards compatible, so not a palatable option for C++. | |||||||||||||||||||||||
▲ | jmull 2 days ago | parent [-] | ||||||||||||||||||||||
> avoiding whole-of-program analysis Why, though? Perhaps it's unfeasibly complex? But if that's the argument, then that's an argument that needs to be made. The paper sets out to refute the idea that C++ already has the information needed for safety analysis, but the examples throw away most of the information C++ does have, without explanation. I can't really take it seriously. | |||||||||||||||||||||||
|