Getting rid of int
From: Jamie Vicary (Xjamie.Xvicary_at_Xmansf.Xox.Xac.Xuk)
Date: 08/25/04
- Next message: Jamie Vicary: "Re: Programming question"
- Previous message: Pat: "Programming question"
- Next in thread: Dave Vandervies: "Re: Getting rid of int"
- Reply: Dave Vandervies: "Re: Getting rid of int"
- Reply: Randy Howard: "Re: Getting rid of int"
- Reply: Does It Matter: "Re: Getting rid of int"
- Reply: Randy: "Re: Getting rid of int"
- Reply: Peter Ammon: "Re: Getting rid of int"
- Reply: Gerry Quinn: "Re: Getting rid of int"
- Reply: gswork: "Re: Getting rid of int"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 25 Aug 2004 15:18:11 +0100
Dear all,
I am writing a C library to deal with integer data for a specialised
task. I am only giving support for unsigned short, signed short,
unsigned long and signed long integers.
I am neglecting signed and unsigned ints because, as far as I can tell,
shorts are 4 bit, longs are 8 bit, and ints are either 4 or 8 bits
depending on your compiler - seems like an unnecessary confusion to me.
The user should know whether 4 or 8 bits is right for her program, and
choose the right type accordingly.
Given this ambiguity, why is the int type so extensively used? Is there
another advantage to having ints in addition to shorts and longs which I
haven't realised?
Regards,
Jamie Vicary.
- Next message: Jamie Vicary: "Re: Programming question"
- Previous message: Pat: "Programming question"
- Next in thread: Dave Vandervies: "Re: Getting rid of int"
- Reply: Dave Vandervies: "Re: Getting rid of int"
- Reply: Randy Howard: "Re: Getting rid of int"
- Reply: Does It Matter: "Re: Getting rid of int"
- Reply: Randy: "Re: Getting rid of int"
- Reply: Peter Ammon: "Re: Getting rid of int"
- Reply: Gerry Quinn: "Re: Getting rid of int"
- Reply: gswork: "Re: Getting rid of int"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|