you know if you tried listening to people and thinking about
what they say you might learn something interesting.
Let's take it in gentle steps. C provides a long type and an int
type. Why? Sometimes a programmer (eg. me) selects int in other cases
long can you speculate why he (ie. me) might do that?
One of the things I worry about is portability. Not because of
academic piffle but becuase of real world experience of programs
outliving their hardware. Software written in the 80's and 90's
is still running. And still doing useful work. A while ago we
(the programming community) had the horrors of moving from 16-bit
to 32-bit. Now we face 32-bit to 64-bit. People will store
addresses in ints or longs. People will use those "spare bits"
in the 24-bit colour type.
One of the nice thinsg about C is you *can* write portable
software. I'm porting old sun stuff to linux at the moment.
A program I've worked on has moved from HP-UX to Windows.
*some* implementations
no
Details of no practical significance are crucial yes.
I don't think NASA programmers can be accused of being impractical...
<snip>
--
Nick Keighley
"There are two ways of constructing a software design: One way is to
make it so simple that there are obviously no deficiencies, and the
other way is to make it so complicated that there are no obvious
deficiencies. The first method is far more difficult."
-- C.A.R. Hoare