On 6/6/2011 10:33 AM, Joseph S. Myers wrote:
Now, if we wanted to pack all the state of GCC inside some (very few, perhaps only one) variable, we would have to change most of the functions inside it. Perhaps the patch would be cosmetic, but it certainly would be very big.
I can't see any reason for packing everything into one variable. What possible gain is this? It might make some silly metric that counts global variables happier, but I don't see any practical gain, and in practice it would be obfuscation. Of course some packaging may be helpful, but going all the way to one global variable to me is nonsense.