Re: Moving from C++ to VC++
- From: "Hendrik Schober" <SpamTrap@xxxxxx>
- Date: Wed, 15 Jun 2005 16:56:24 +0200
Doug Harrison [MVP] <dsh@xxxxxxxx> wrote:
> On Tue, 14 Jun 2005 12:06:19 +0200, Hendrik Schober wrote:
> > So which type would you suggest using for
> > "longest integer"?
> > (May I suggest 'long int'? <g> )
>
> So on IA8192, all programs that use long would use 8,192 bit integers?
Why not? If it is the longest integer.
> In
> C99 and I expect the next revision to C++, there's even the execrable "long
> long".
Oh well, then 'long long' should be the
longest integer and 'long' should just be
a long one.
> I think a better approach is <inttypes.h>.
IIRC, this defines the 'int_XX' familiy?
> The short/int/long
> division has been inadequate for a long time. [...]
Why?
> With all the talk in this thread of moving forward, how about tightening up
> rules that made more sense in the day when Ritchie was inventing his
> portable assembly language, when hardware was a lot weirder and less
> capable?
Why? If want the fastest and native (for
some definition of "native" anyway) integer,
I use 'int'. If it doesn't have to be as big
and space is a mild concern, I use 'short'.
If it has to be as long as possible, I use
'long'. For many things, this is good enough.
> At least we can work within the existing rules to move forward
> while taking into consideration the code written for the last couple of
> decades of 32 bit machines.
32bit machines are in wide availability since
when? Certainly not for what I'd call "decades".
More important, I'd rather take into consideration
the lessons learned from going from to 32 and
from 32bit, instead of the 32bit itself. 32bits
will be gone soon, such transition will come
again.
Schobi
--
SpamTrap@xxxxxx is never read
I'm Schobi at suespammers dot org
"Coming back to where you started is not the same as never leaving"
Terry Pratchett
.
- Follow-Ups:
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Re: Moving from C++ to VC++
- References:
- Moving from C++ to VC++
- From: NoName
- Re: Moving from C++ to VC++
- From: Severian [MVP]
- Re: Moving from C++ to VC++
- From: Victor Bazarov
- Re: Moving from C++ to VC++
- From: Carl Daniel [VC++ MVP]
- Re: Moving from C++ to VC++
- From: Hendrik Schober
- Re: Moving from C++ to VC++
- From: Carl Daniel [VC++ MVP]
- Re: Moving from C++ to VC++
- From: Hendrik Schober
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Re: Moving from C++ to VC++
- From: Hendrik Schober
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Re: Moving from C++ to VC++
- From: Hendrik Schober
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Re: Moving from C++ to VC++
- From: Bo Persson
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Re: Moving from C++ to VC++
- From: Bo Persson
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Re: Moving from C++ to VC++
- From: Hendrik Schober
- Re: Moving from C++ to VC++
- From: Doug Harrison [MVP]
- Moving from C++ to VC++
- Prev by Date: Re: Moving from C++ to VC++
- Next by Date: Templates and DLL export
- Previous by thread: Re: Moving from C++ to VC++
- Next by thread: Re: Moving from C++ to VC++
- Index(es):
Relevant Pages
|