F
Flash Gordon
Kelsey Bjarnason wrote, On 13/09/07 20:28:
No it won't, unless just because you compile this application the size
of char suddenly changes. It will compile, yes, but that is not the same
as working.
Portability is not binary. Do you think POSIX specific code is
completely non-portable because it won't run on non-posix systems? If so
you have completely failed to understand what portability means. Fixed
size integer types are exactly the same, as are objects above the
minimum size guaranteed by the standard.
If all code has to be portable to all systems tell me how to port code
for manipulating live video with 1MB per frame on a processor with only
8K of RAM and no communication mechanism fast enough to get 1MB on to it
during one frame.
[snips]
If writing a typedef will do the job, then so will the new int type.
Making the new int type at best a convenience.
The difference is that the new int type will work on *all*
implementations which have *any* suitable type
Rather than "on all implementations", where, oh, int and char will
continue to work.
No it won't, unless just because you compile this application the size
of char suddenly changes. It will compile, yes, but that is not the same
as working.
Again, exactly my point. What _could have been_ a wonderfully useful
notion has instead become little more than a way to limit the portability
of the code.
Portability is not binary. Do you think POSIX specific code is
completely non-portable because it won't run on non-posix systems? If so
you have completely failed to understand what portability means. Fixed
size integer types are exactly the same, as are objects above the
minimum size guaranteed by the standard.
If all code has to be portable to all systems tell me how to port code
for manipulating live video with 1MB per frame on a processor with only
8K of RAM and no communication mechanism fast enough to get 1MB on to it
during one frame.