Re: return the start of a substring in a string in c
- From: "Malcolm McLean" <regniztar@xxxxxxxxxxxxxx>
- Date: Wed, 18 Jul 2007 07:40:03 +0100
"Ian Collins" <ian-news@xxxxxxxxxxx> wrote in message news:5g525qF3e3g6kU1@xxxxxxxxxxxxxxxxxxxxx
Malcolm McLean wrote:So we've got ten different plugs, and ten different matching sockets. If your kitchen socket doesn't match the plug of the kettle you want, you can buy an adapter, but there are ninety of them.Unless you have 10 standards for sockets.
"Eric Sosman" <Eric.Sosman@xxxxxxx> wrote in message
news:1184708470.948105@xxxxxxxxxxx
Malcolm McLean wrote On 07/17/07 17:06,:The difference is that the integer representation is the way that[...] However it
obvious that C has too many integer types; short, int, long, long
long, in
signed and unsigned, size_t and ptrdiff_t.
Drat! My obviousness detector must be on the fritz
again. Probably forgot to pay my platitude purveyor.
That's ten standards for
representing an integer.
... to accompany three looping constructs, two ways
to exit, and a partridge in a pear tree. What's wrong
with an expressive vocabulary? Are you an aficionado of
Newspeak, perchance?
functions talk to each other.
No one minds ten different kinds of kettles in the shop. However when
you've got ten different standards for plugs it becomes a real problem.
That's partly why I insist on separating IO from logic. It is a lot easier said than done.
Try controlling real hardware with only one integer type.
But code that interacts with hardware devices using bits is inherently non-portable anyway. It won't become any less portable if you use a platform-specific extension.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
.
- Follow-Ups:
- Re: return the start of a substring in a string in c
- From: Ian Collins
- Re: return the start of a substring in a string in c
- From: Flash Gordon
- Re: return the start of a substring in a string in c
- References:
- return the start of a substring in a string in c
- From: yinglcs@xxxxxxxxx
- Re: return the start of a substring in a string in c
- From: Richard Heathfield
- Re: return the start of a substring in a string in c
- From: Malcolm McLean
- Re: return the start of a substring in a string in c
- From: Harald van Dijk
- Re: return the start of a substring in a string in c
- From: Malcolm McLean
- Re: return the start of a substring in a string in c
- From: Flash Gordon
- Re: return the start of a substring in a string in c
- From: Malcolm McLean
- Re: return the start of a substring in a string in c
- From: Ben Bacarisse
- Re: return the start of a substring in a string in c
- From: Malcolm McLean
- Re: return the start of a substring in a string in c
- From: Ben Bacarisse
- Re: return the start of a substring in a string in c
- From: Malcolm McLean
- Re: return the start of a substring in a string in c
- From: Ben Bacarisse
- Re: return the start of a substring in a string in c
- From: Malcolm McLean
- Re: return the start of a substring in a string in c
- From: Ben Bacarisse
- Re: return the start of a substring in a string in c
- From: Malcolm McLean
- Re: return the start of a substring in a string in c
- From: Eric Sosman
- Re: return the start of a substring in a string in c
- From: Malcolm McLean
- Re: return the start of a substring in a string in c
- From: Ian Collins
- return the start of a substring in a string in c
- Prev by Date: Re: switch statement, was compiler, status...
- Next by Date: Re: return the start of a substring in a string in c
- Previous by thread: Re: return the start of a substring in a string in c
- Next by thread: Re: return the start of a substring in a string in c
- Index(es):
Relevant Pages
|