(aka pure). . , Java , , . , , .
, , . ( , , sin C, errno .
, , , , - , , . mod-ref- (aka alias analysis pointer analysis, , escape-). :
- (
global x, y->f, *y, **y ..) - ,
- (..
*x = 5;), , - , .
, , .
Note that some languages, such as C ++, provide annotations for cleanliness (a function constnot to be confused with pure virtual functions), and even allow some additional functions, such as mutable. I was told that they are not particularly useful for optimization, although, but I did not write a C ++ compiler, so I do not know why. I would suggest that a separate compilation destroys their pleasure, perhaps.
source
share