Also, there are still enough systems in use where the linker will only look at the first 6 or so characters of any variable, so veryLongVariable1 and veryLongVariable2 are indistinguishable.
Also, there are still enough systems in use where the linker will only look at the first 6 or so characters of any variable, so veryLongVariable1 and veryLongVariable2 are indistinguishable.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Just for clarification, before everybody rushes to shorten all their variables, CornedBee's post was regarding external variables (those shared between files).Originally Posted by CornedBee
In the context of a typical loop variable (ie. not external), I think the standard guaranteed minimum is 31 characters:
Originally Posted by C89 Draft
I wouldn't rush to shorten even my external variables. These systems have become very rare.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
... and the point of the standard is that a compliant C compiler, on such a system, would be required to do things in a way that resolves concerns for the linker without requiring the programmer to change source code.Originally Posted by CornedBee