Oct. 27, 2012
2:49 a.m.
Ian Abbott wrote:
On 26/10/12 12:10, Arthur David Olson wrote:
...can we please 's/register //g'? It is not adding any value...
Declaring something with "register" means it doesn't have an address and that its value can't be changed by way of a pointer; the declaration can be both a hint to the compiler and a mental aid for aging humans (such as yours truly).
Or possibly a hindrance to the compiler. Didn't 'register' go out of fashion back in the 90s?
Indeed. Compilers today are generally better than humans at deciding what variables should be stored in registers. Modern compilers even ignore the 'register' hint I think. +1 for removing the 'register' keywords. -- Dominique