Re: Moving from C++ to VC++
- From: "Hendrik Schober" <SpamTrap@xxxxxx>
- Date: Thu, 9 Jun 2005 09:23:35 +0200
Carl Daniel [VC++ MVP] <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx> wrote:
> [...]
> The fact is, very few applications will ever need to use a 64-bit integer
> type, even fewer will need a 128-bit integer. Breaking compatibility with
> untold scores of current programs to favor those very few future programs
> that need the larger type just doesn't make sense. Those few programs that
> do need that large integer size can simply use __int64 (or int_t<64>, or
> whatever other new integer types we may see in C++ in the future).
>
> The legitimate, common uses I can see for a 64 bit integer type involve
> representation of values of or differences between 64 bit pointers, and we
> have size_t and prtdiff_t for that (and yes, they're both 64 bits on 64 bit
> Windows).
One would assume (that is, I would anyway) the
native integer size on a 64bit platform to be
64bit. AFAIK, according to the C/C++ standards,
even 'int' should be 64bit then. I agree that
the usefulness of this is at least debatable.
(Even though I would prefer 'int' to be the
native integer type of the platform. If you need
less than that, use 'short' or 'int32_t' or
whatever.)
But I really don't see any excuse for not making
'long' 64bit on a 64bit platform.
> -cd
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]
- Moving from C++ to VC++
- Prev by Date: Re: Moving from C++ to VC++
- Next by Date: Re: VirtualAlloc and new
- Previous by thread: Re: Moving from C++ to VC++
- Next by thread: Re: Moving from C++ to VC++
- Index(es):
Relevant Pages
|
Loading